Jump to content

OutPutchatbox


Recommended Posts

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

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

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...