mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user