mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
feat: power button sync and passenger control
The power state is now synced between the driver and passenger. The passenger can also toggle the radar's power if the config line allows for it.
This commit is contained in:
@@ -31,6 +31,6 @@
|
||||
---------------------------------------------------------------------------------------]]--
|
||||
|
||||
RegisterNetEvent( "wk_wars2x_sync:sendPowerState" )
|
||||
AddEventHandler( "wk_wars2x_sync:sendPowerState", function( state, target )
|
||||
-- code
|
||||
AddEventHandler( "wk_wars2x_sync:sendPowerState", function( target, state )
|
||||
TriggerClientEvent( "wk_wars2x_sync:receivePowerState", target, state )
|
||||
end )
|
||||
Reference in New Issue
Block a user