What is a Triggerbox?
Triggerbox is a code box that is executed when the player collides with it
and can be modified to alter the behavior of the game, these are only found in the editor maps.
mode{}
Triggerbox have modes which modifies the way it executes:
enter - makes the code box run only when the player collides with it.
exit - makes the triggerbox run only when the player stops colliding with it.
onclick - causes the triggerbox to execute only when the player clicks on it.
solid - makes the triggerbox solid and runs when you shoot it.
stay - makes the code box run only when the player is colliding with it.
loop - makes the code box run 120 times per second (frame dependent), i.e. always.
ifcondition{}
Triggerbox have conditions that if the player meets them, it will be executed, you can also use operators like:
= equals to
> more than
< less than
!= not equals to
time=0-360/day/night - The triggerbox only executes in a certain hour or at day/night (game time)
weather=clear/rain - The triggerbox only executes if its raining or not
radius=0-999 - The triggerbox only executes if the player is on a certain radius
chat=text - The triggerbox only executes if the player types certain text
skinid=0-8 - The triggerbox only executes if matches player skin (e.g. skinid=6 is the soldier "Serbian")
playerid=number - The triggerbox only executes if matches player id
playerheight=0-999 - The triggerbox only executes if the player is on a certain height
playerrotation=0-360 - The triggerbox only executes if the player is on a certain rotation (only works with more and less than)
team=any/blue/red - The triggerbox only executes if the player is on a certain team
mask=0-14 - The triggerbox is executed if the player has a certain mask on
isinvehicle=true/false - The triggerbox is executed if the player is inside/outside a vehicle
ishonking=true/false - The triggerbox is executed if the player uses the horn of a vehicle
isfemale=true/false - The triggerbox is executed if the player haves a female skin or not
islocal=true/false - the triggerbox is executed if the player is local
ishost=true/false - The triggerbox is executed if the player is the host/server owner
issitting=true/false - The triggerbox is executed if the player is sitting or not
iscrouching=true/false - The triggerbox is executed whether the player is crouched or not
isdrunk=true/false - The triggerbox is executed whether the player is drunk or not
emote=emote - The triggerbox is executed whether the player is doing a certain emote or not
isholdingphone=true/false - The triggerbox is executed whether the player is holding the phone or not
dial=number - The triggerbox is executed whether the player is calling certain number on the phone
isragdoll=true/false - The triggerbox only executes if the player is on ragdoll mode or not
ispointing=true/false - The triggerbox only executes if the player is pointing with the finger or not (player animation)
isaiming=true/false - The triggerbox only executes if the player is aiming with a weapon or not
weapon=0/1/2/3/4/5/6 - The triggerbox is executed if the player is holding a certain weapon
kills=count - The triggerbox is executed if the player has a certain number of kills
health=0-100 - The triggerbox is executed if the player has a certain amount of health
speed=count - The triggerbox is executed if the player is going to a certain amount of speed
role=rolename - The triggerbox is executed if the player has a certain role
playercount=count - The triggerbox is executed if the room haves a certain number of players
vehiclecount=count - The triggerbox is executed if theres a certain amount of vehicles in the room
solidercount=count - The triggerbox is executed if the room has a certain amount of enemies (rifle npc)
zombiecount=count - The triggerbox is executed if the room has a certain amount of zombies (zombie npc)
objectname=name - The triggerbox is executed if it detects certain object (example: Box_Cardboard)
cargoname=name - The triggerbox is executed if a certain moving object is detected (precisely at the back of the marock)
inventory:item=value - The triggerbox is executed if the player haves a certain amount in a item in inventory
interactionmenuclick=button - The triggerbox is executed if the player clicks on a certain interaction menu button
isintaxi=true/false - The triggerbox is executed if the player is on a vehicle that haves taxisign enabled or not
hassiren=true/false - The triggerbox is executed if the player is on a vehicle that haves siren enabled or not
vehiclemodel=model - The triggerbox is executed if the player is on a certain vehicle (example: Hummingbird)
vehiclehealth=0-1000 - The triggerbox is executed if the vehicle has the specified health
fuel=0-1000 - The triggerbox is executed if the vehicle has the specified fuel
israce=true/false - The triggerbox is executed if the player is currently on race
phonemenu=home/dial/call/contacts/settings - The triggerbox is executed if the player is on a certain phone menu
isdriver=true/false - The triggerbox is executed if the player is driving the vehicle or not
isshooting=true/false - The triggerbox is executed if the player is driving the vehicle or not
isreloading=true/false - The triggerbox is executed if the player is reloading or not
playername=name - The triggerbox is executed if the player haves certain username
isvehicleowner=true/false - The triggerbox is executed if the player owns the vehicle
hasheistbag=true/false - The triggerbox is executed if the player haves heistbag or not
cammode=0/1/2/3 - The triggerbox is executed if the player is on a certain cammode
magcount=count - The triggerbox is executed if the player haves certain mag amount in the gun
ammocount=count - The triggerbox is executed if the player haves certain ammo amount in the gun
framerate=amount - The triggerbox is executed if the player haves certain amount framerate
ping=amount - The triggerbox is executed if the player haves certain amount of ping (Only works on multiplayer)
flytimer=amount - The triggerbox is executed if the player haves certain amount of flytimer
player{}
trap - The player gets trapped inside the triggerbox
(add deactivate{seconds} if you want the player to only be trapped for a certain amount of time)
damage*1-100 - Removes certain amount of health from the player
(if you set it to 0 the game will detect it as a hack because it heals instead of damage)
heal*0-100 - Gives certain amount of health to the player
invincible*true/false - Makes the player become invincible to collisions
(bullets still affect the player)
respawn - Makes the player respawn
respawntimer*time - Changes the respawn time when the player dies
nophone - Blocks the player's phone
cammode*0/1/2/3 - Changes or blocks certain player camera
(0 = far | 1 = close | 2 = very far | 3 = first person)
race - Starts a race if the player is inside a vehicle (for it to work you have to do a race with checkpoints)
race*foot - Starts a race if the player is outside a vehicle (for it to work you have to do a race with checkpoints)
spawn&drive*vehmodel - Spawns and drives the specified vehicle (also supports cmd e.g. spawn&drive*zupra:0,10,0:0,90,0:color(1,0.5,0))
spawn&drive*vehmodel*seatid - Spawns and drives the specified vehicle in specified seat (seat id 0 is driver)
drive*seatid - Rides your already spawned vehicle in specified seat
emote*name - Makes the player do certain emote
team*red/blue/free/text - Makes the player be in a certain team
role*rolename - Makes the player haver certain role
mask*0-14 - Makes the player have certain mask
vehicle{}
paint*r,g,b - Change the colour of the vehicle (only works in RGB red green blue)
damage*0-1000 - Change the status of the vehicle, specifically damage (use +/- to add)
fuel*0-1000 - Change the fuel level of the vehicle (use +/- to add)
alwaysdrift*true/false - Makes the vehicle always drifting or not (default is false)
arcadedriving*true/false - Makes the vehicle always in arcade driving or not (default is true)
downforce*0-100 - Fixes the vehicle's downward force of gravity on each wheel
headlights*on/off - Turns on/off the vehicle's headlights
lock*true/false - Blocks/Unlocks the vehicle
alarm*time - Enables vehicle's alarm for a certain amount of time
repair - Repairs the vehicle
ghost*time - disables all vehicle collision for given amount of time
inventory{}
add*item*value - Adds an item with a certain value on your inventory (use +/- to add)
del*item - Deletes the item from your inventory
NPC
npckill{} - Kills the npc
npcanimation{name} - Makes the npc do certain animation
npcposition{x,y,z} - Changes the position of the npc
npcrotation{x,y,z} - Changes the rotation of the npc
teleport{}
x,y,z - Teleports the player to a certain location with a delay of 1.5 seconds
x,y,z*seconds - Teleports the player to certain coordinates with modifiable delay
x,y,z*seconds*true - Teleports the player to a certain location with a modifiable delay with or without effect
effect{}
reverbzone*radius*prefix - Defines echo in certain areas
values:
generic
padded cell
room
bathroom
livingroom
stoneroom
auditorium
concerthall
cave
arena
hangar
carpetted hallway
hallway
stone corridor
alley
forest
city
mountains
quarry
plain
parkinglot
sewerpipe
underwater
drugged
dizzy
psychotic
camerashake*0-1 - Shakes the game camera
flash - display flickering (only works in enter or exit mode)
slowmo*time - Slow down time for certain seconds
lookat*x,y,z*time - The camera looks at the player from a certain area for a certain number of seconds
fog*0-100 - Adds fog to the ambient (if you add 100, you will see nothing)
skycolor*r,g,b - Changes the sky's color (affects the ambient color aswell, default is 0,0,0)
steam - Adds steam to the ambient (it is affected by gravitational attraction)
steam_small - Adds smaller steam to the ambient (it is affected by gravitational attraction)
drunk - The player gets drunk for 2 minutes
drunk*seconds - The player gets drunk for certain seconds
weapon{}
refill - Refills all weapons ammo
refill*1/2/3/4/5/6 - Refills certain weapon ammo
(1 = pistol M9 | 2 = rifle ar15 | 3 = shotgun m1014 | 4 = sniper awsm | 5 = rifle akm | 6 = submachine uzi)
empty - Empties all ammo of guns
empty*1/2/3/4/5/6 Empties ammo of certain gun
(1 = pistol M9 | 2 = rifle ar15 | 3 = shotgun m1014 | 4 = sniper awsm | 5 = rifle akm | 6 = submachine uzi)
1/2/3/4/5/6 - selects certain weapon
Game
interactionmenu{allow/block/value} - Blocks or makes a certain menu accessible
values:
mainmenu
actions
inventory
accessories
personalvehicle
requestvehicle
vehiclestatus
serveroptions
roleselect
sound{name/link*volume*distance*true/false} - Reproduces a sound with certain volume and distance
setspawn{x,y,z} - changes the point of appearance at a certain position (if you leave it blank, it will appear on triggerbox position)
transform{(objectA)x,y,z*(objectB)x,y,z*speed*true/false} - Moves objects from point A to point B at a certain speed or not
rotate{(objectA)x,y,z*(objectB)x,y,z*speed*true/false*delay} - Rotate the object from point A to point B at a certain speed or not (ping pong)
lookat{(objectA)x,y,z*(objectB)x,y,z*speed*offset*axis} - The triggerbox makes an object look at another object with a custom speed, offset and axis
(offset is like an area that the object cannot see, axis blocks the object from lookin in a certain axis, for example up an down)
spawn{objectname*(coords)x,y,z*(rotation)x,y,z} - Makes an object appear with custom coords and rotation (example: Fire_)
despawn{objectname} - makes an object dissapear (example: Npc_Ped2)
scale{(coords)x,y,z*(rescale)x,y,z*speed*true/false} - The triggerbox scales certain object at a certain speed or not
spread{radius} - The triggerbox executes at different positions within a certain distance
tip{text} - Makes a text appear at the bottom
header{text} - Makes a text appear up the screen
outro{text} - exits the map with custom outro
chat{text} - makes the player send a message
gravity{x,y,z} - Changes game's gravity (default is 0,-9.8,0, and only works on solo)
time{day/night/0-360} - Changes the game time
weather{rain/clear} - Changes the weather
executeplayer{} - Any object matching the name will be executed for all, if left blank it will only execute for players (synchronization)
explode{x,y,z} - The triggerbox generates a explosion in a certain given position (if leave blank, it will explode on triggerbox pos)
cooldown{seconds} - The triggerbox is only executed once every few seconds (e.g. cooldown{60})
deactivate{seconds} - The triggerbox is desactivated when executed within certain seconds or instantly
Cinematics
camsequence{seconds:(coords)x,y,z:(rotation)x,y,z} - Teleports and rotates the camera
(if you want to add more sequences put a * at the end of the rotation, e.g.: camsequence{(sequence1)seconds:x,y,z:x,y,z*(sequence2)seconds:x,y,z:x,y,z})
camtranslate{seconds:(coords)x,y,z:(rotation)x,y,z} - Moves and rotates the camera
(if you want to add more sequences put a * at the end of the rotation, example: camtranslate{(sequence1)seconds:x,y,z:x,y,z*(sequence2)seconds:x,y,z:x,y,z})
Advanced
calltriggerbox{(coords)x,y,z*seconds} - Teleports a code box to the player within a certain time or instantly
webrequest{link} - Opens an external link, it will ask you if you wanna open it
webrequest{link*GET} - Grabs the link data and sends it to the game chat
webrequest{link*POST*format*format} - triggerbox opens the external link and sends a post to a certain database
Game sounds
Recommended to use these than external ones.
Music:
Fall
OminousWind
TheWasteland
WelcomeToChaos
ElevatorMusic
CinematicMusic
DeadWalking
MedievalWitcher
MorganaMirage
Mysterious
Mysterious1
Orchestral
SpyMusic
TheChase
Sound Effects:
MechanicalMovement1-2
GarageDoor
TimeStop
Fart
Horror1-5
Meme1-17
Night
Notif1-5
People
PoliceRadio
Siren
WhiteNoise
Instruments:
BassAnalog
FatSaw
Kick
Kick808
Snare
Snare808
Hat
Hat808
Crash808
Crash909
Clap
Clap808
ClapPap
HTML
<align=left/right> - Aligns text to the left or right
<size=0-999> - Changes the text's size
<alpha=#FF> - Changes the alpha's text
<sprite="Discord" name=emoji> - Adds a emoji to the text
Emojis:
kek
lol
lul
oilup
laclike
pog
hmm
smart
spongegar
ok
wut
<color=#FFFFFF> - Changes the text's color
Colors:
red
green
blue
orange
yellow
white
purple
cyan (only shows on roles)
lime (only shows on roles)
brown (only shows on roles)
lightblue
(you can also use HEX colors.)
<font=name> - Changes the text font
Fonts:
Pricedown
Crayon
Pacifico
Murderer
Tags
[mapname] - Sends the map's filename
[curplayers] - Sends the number of players in the room
[weather] - Sends the game weather
[time] - Sends the game time
[playername] - Sends your username
[playerid] - Sends your id
[rndplayerid] - Sends random online player id
[killcount] - Sends your kills amount
Vector3 Tags
playerpos - Player's position
playerrot - Player's rotation
campos - Camera position
randomvector - generates random vector > 0,0.5,-1 | you can customize it e.g randomvector5,10,0 > -5,9,0
randomvectorabs - generates absolute/positive random vector > 0.5,0.2,1
Known Bugs
Inventory: when the value 10000001 is reached, it is corrupted making the object unusable.
HTML: emojis and text fonts sometimes cause errors interrupting map loading.
DL content: videos crash the game.
Camera: lookat and camsequence sometimes gets freezed, as does the camera shaking.
Ifcondition: ifcondition{} and mode{stay} sometimes don't behave as expected.
Do's & Dont's
Do not use networked commands on loop as they can spam network messages and break the game, if used in loop, add cooldown{1} to execute in lower rate.
Networked commands such as:
globalvar{}
explode{}
inventory{}
player{heal/damage/role/team/mask/respawn}
vehicle{paint/headlights/lock/alarm}
Made with ❤️ by IzanGamerHD Official.