Mec.Love Posted May 8, 2020 Share Posted May 8, 2020 Galera, estou configurando um script, porém quando ele vai fazer a função apertando a tecla, ele manda a mensagem para todos do servidor function processLockUnlock(vehicle) local locked = isVehicleLocked(vehicle) if isPedInVehicle(localPlayer) then playSounds("lockin") else playSounds("lockout") end if locked then triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, false) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo destrancado!", 255, 255, 255, true) else triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, true) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo trancado!", 255, 255, 255, true) end end poderiam me ajudar? Link to comment
MRXBBC Posted May 8, 2020 Share Posted May 8, 2020 Tente isso function processLockUnlock(vehicle) local locked = isVehicleLocked(vehicle) if isPedInVehicle(localPlayer) then playSounds("lockin") else playSounds("lockout") end if locked then triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, false) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo destrancado!", localPlayer, 255, 255, 255, true) else triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, true) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo trancado!", localPlayer, 255, 255, 255, true) end end Se te ajudei deixa o thanks ai na moral 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now