π‘Usage
Script for PolyZone to trigger an event by pressing E.
new locked doorsMaybe you wondering how to use this script π Don't worry we will help here. Here you learn how to use our script.
How to use BoxE
First of all, we create a new Box in Boxes.lua
The Box config should look like that. Of course, customize it by your preferences
[1] = {
["enabled"] = true,
['coords'] = vector4(-57.0654, -1097.0039, 26.4224, 205.0292),
['sizeY'] = 3, -- Size of box
['sizeX'] = 2, --Size of box
--['sizeZ'] = 2, -- don't have to be there. Default is 2
['message'] = 'to trigger Test', --Text what you want
['side'] = 'left', --Left/Right
['Trigger'] = 'Test', --Custom name what you set up in events.lua, if you don't need just leave it blank.
},If you want to add next box just change [1] to [2]
[2] = {
["enabled"] = true,
['coords'] = vector4(-60.0654, -1097.0039, 26.4224, 205.0292),
['sizeY'] = 3, -- Size of box
['sizeX'] = 2, --Size of box
['message'] = 'to trigger REEEE', --Text what you want
['side'] = 'left', --Left/Right
['Trigger'] = 'REEEEE', --Custom name what you set up in events.lua, if you don't need just leave it blank.
},So final config should look like that
Now we have to set up Triggers. So, We open the events.lua and we make a new condition
The Condition is up to you. It depends on what you want to trigger
For example, I want to send to player a message by box [1] and by box [2] I want to spawn a vehicle
How to use BoxE for doors
First of all, we have to create new locked doors and set it all in qb-doorlock. Also, I recommend setting distance to 0
Now, we create a new Box in Doors.lua
The Box config should look like that. Of course, customize it by your preferences again
These configs are just examples. The most of settings should be combinable.
If you find any bugs or you still didn't get it how it works contact us in the Support room on Discord.
Last updated
