Proper arguments, minor changes

This commit is contained in:
ElPumpo
2019-04-04 19:15:30 +02:00
parent eee905adb9
commit 6c83e15b4e
2 changed files with 8 additions and 11 deletions
+2 -5
View File
@@ -135,8 +135,7 @@ function OpenDMVSchoolMenu()
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'dmvschool_actions',
{
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'dmvschool_actions', {
title = _U('driving_school'),
elements = elements,
align = 'top-left'
@@ -209,7 +208,6 @@ end)
-- Display markers
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local coords = GetEntityCoords(PlayerPedId())
@@ -219,7 +217,6 @@ Citizen.CreateThread(function()
DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false)
end
end
end
end)
@@ -277,7 +274,7 @@ Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if CurrentAction ~= nil then
if CurrentAction then
ESX.ShowHelpNotification(CurrentActionMsg)