Hooks (client-side only)
You can use this feature to execute code on some events and modify the script behaviour.
openMenu hook
openMenu hooklocal hookId = exports["evo_sound_player"]:RegisterHook('openMenu', function(payload)
print('Triggered openMenu hook')
print(' - SoundId: ', payload.soundId)
print(' - Type: ', payload.type)
print(' - Vehicle: ', payload.vehicle)
print(' - Boombox: ', payload.boombox)
print(' - Zone: ', payload.zone)
return true
end)closeMenu hook
closeMenu hookcreateSound hook
createSound hookLast updated