HM Warndreieck - Installation
Installing HM Warndreieck is particularly easy, because the script comes with an automatic database migration.
-
Copy the files: Copy the
hm_Warndreieckfolder into yourresources/directory. -
Register the item: Make sure the item
warning_triangleis registered in your inventory system (e.g.ox_inventory/data/items.lua).Example for ox_inventory:
['warning_triangle'] = {label = 'Warning triangle',weight = 500,stack = true,close = true,client = {export = 'hm_Warndreieck.warning_triangle'}}, -
Add it to server.cfg: Add the start command to your
server.cfg:ensure hm_Warndreieck -
Automatic DB update: On first start, the script automatically checks whether the column
has_warning_triangleexists in your vehicle table (e.g.owned_vehicles). If not, it is created automatically. You do not need to import an SQL file manually.
Requirements
Section titled “Requirements”- Database:
oxmysql - Framework:
es_extendedorqb-core - Inventory:
ox_inventory,qb-inventoryor a compatible system.