Fixed #3, fixed exploit storing boat when not in driver seat, fixed storing boat not owned

- Async task for buying boats aswell
This commit is contained in:
ElPumpo
2018-08-05 13:17:12 +02:00
parent 2568a3755f
commit fa81033557
4 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -63,10 +63,10 @@ AddEventHandler('esx_boat:hasEnteredMarker', function(zone, zoneNum)
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
if DoesEntityExist(vehicle) then
if DoesEntityExist(vehicle) and GetPedInVehicleSeat(vehicle, -1) == playerPed then
CurrentAction = 'garage_in'
CurrentActionMsg = _U('garage_store')
CurrentActionData = {vehicle = vehicle}
CurrentActionData = { vehicle = vehicle }
end
end