Skip to content

Commit

Permalink
fix: License plate not being removed when not in a vehicle
Browse files Browse the repository at this point in the history
Because I can't keep my spelling consitient...

Fixes #68
  • Loading branch information
TGRHavoc committed Aug 25, 2021
1 parent 8cb6b11 commit 5b276d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example_client/client_vehicle_info.lua
Expand Up @@ -4,7 +4,7 @@
]]
local data = {
["Vehicle"] = "",
["License Plate"] = "FiveM"
["Licence Plate"] = ""
}

local temp = {}
Expand Down Expand Up @@ -36,9 +36,8 @@ function doVehicleUpdate()
end

if data["Licence Plate"] ~= plate then
--Citizen.Trace("Updating plate: " .. plate)
data["Licence Plate"] = plate
TriggerServerEvent("livemap:UpdatePlayerData", "License Plate", plate)
= data["Licence Plate"] = plate
TriggerServerEvent("livemap:UpdatePlayerData", "Licence Plate", plate)
end
end

Expand Down

0 comments on commit 5b276d8

Please sign in to comment.