Hi,
i'm a LUA beginner and i'm trying to when i type /test the VehicleLicensePlate change to "T E S T" but it's working only one time when i restart the server, if i restart the script it's not working :
client.lua:
server.lua:
i'm a LUA beginner and i'm trying to when i type /test the VehicleLicensePlate change to "T E S T" but it's working only one time when i restart the server, if i restart the script it's not working :
client.lua:
PHP Code:
AddRemoteEvent("Test", function(vehicle)
vehicle = GetStreamedVehicles(player)
for k, v in pairs(vehicle) do
CallRemoteEvent("SetLicensePlate", vehicle)
end
end)
server.lua:
PHP Code:
AddRemoteEvent("SetLicensePlate", function(vehicle)
SetVehicleLicensePlate(vehicle, "T E S T")
end)
AddCommand("test", function(player)
CallRemoteEvent(player, "Test")
end)
Comment