mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fixed scenario not having time to start
This commit is contained in:
+1
-1
@@ -106,8 +106,8 @@ function sit(object, modelName, data)
|
||||
FreezeEntityPosition(object, true)
|
||||
|
||||
currentScenario = data.scenario
|
||||
Citizen.Wait(1000)
|
||||
TaskStartScenarioAtPosition(playerPed, currentScenario, pos.x, pos.y, pos.z - data.verticalOffset, GetEntityHeading(object) + 180.0, 0, true, true)
|
||||
Citizen.Wait(1000)
|
||||
sitting = true
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user