Home › Documentation › Installation · origen_propplacer
Run the following SQL against your database before starting the resource.
The resource will also create and migrate these tables automatically on startup via oxmysql. Running the SQL manually is recommended to ensure a clean initial state.
propplacer_propsStores every placed prop with its position, rotation, category, and metadata.
CREATE TABLE IF NOT EXISTS `propplacer_props` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`model` VARCHAR(100) NOT NULL,
`label` VARCHAR(150) DEFAULT NULL,
`notes` TEXT DEFAULT NULL,
`x` FLOAT NOT NULL,
`y` FLOAT NOT NULL,
`z` FLOAT NOT NULL,
`rx` FLOAT NOT NULL DEFAULT 0,
`ry` FLOAT NOT NULL DEFAULT 0,
`rz` FLOAT NOT NULL DEFAULT 0,
`category` VARCHAR(80) DEFAULT 'General',
`placed_by` VARCHAR(100) NOT NULL DEFAULT 'admin',
`locked` TINYINT(1) DEFAULT 0,
`ghost` TINYINT(1) DEFAULT 0,
`tags` VARCHAR(200) DEFAULT NULL,
`placed_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);propplacer_permissionsStores manually granted player permissions.
CREATE TABLE IF NOT EXISTS `propplacer_permissions` (
`identifier` VARCHAR(100) PRIMARY KEY,
`name` VARCHAR(100) NOT NULL,
`level` VARCHAR(20) NOT NULL DEFAULT 'editor',
`granted_by` VARCHAR(100) NOT NULL DEFAULT 'console',
`granted_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);On every resource start, the server automatically runs ALTER TABLE … ADD COLUMN IF NOT EXISTS migrations for backward compatibility with older installs (pre-2.2.0). No manual action needed if upgrading from a previous version.
ensure origen_propplaceroxmysql must be ensured before origen_propplacer in your server.cfg.