mirror of
https://github.com/jimathy/jim-boarding.git
synced 2026-03-31 06:23:54 -04:00
Update main.lua
This commit is contained in:
committed by
GitHub
parent
bcd12ae17c
commit
3e2cbbafc4
@@ -1,5 +1,5 @@
|
||||
local RCCar = {}
|
||||
local player = nil
|
||||
local player = GetPlayerPed(-1)
|
||||
|
||||
Attached = false
|
||||
|
||||
@@ -198,7 +198,7 @@ RCCar.DrawInstructions = function(distanceCheck)
|
||||
local x = GetEntityRotation(RCCar.Entity).x
|
||||
local y = GetEntityRotation(RCCar.Entity).y
|
||||
|
||||
if (-40.0 < x and x > 40.0) or (-40.0 < y and y > 40.0) then
|
||||
if (-40.0 < x and x > 40.0) or (-40.0 < y and y > 40.0) or (HasEntityCollidedWithAnything(RCCar.Entity) and GetEntitySpeed(RCCar.Entity) > 2.6) then
|
||||
RCCar.AttachPlayer(false)
|
||||
SetPedToRagdoll(player, 4000, 4000, 0, true, true, false)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user