Skip to content

Commit f194983

Browse files
author
Dutchman101
authored
freeroam: make exception in /sp vehicles blacklist
Exception in case player wants to use 'sp' respawn after death, rather than take advantage of "zapping" away from combat with a blacklisted vehicle. Otherwise, blowing up in a vehicle will still count as occupying it, as long you got the chance to use the command.
1 parent 3beaa95 commit f194983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[gameplay]/freeroam/fr_client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ function setPosCommand(cmd, x, y, z, r)
11061106
if vehicle then
11071107
local vehModel = getElementModel(vehicle)
11081108

1109-
if table.find(g_settings["vehicles/disallowed_warp"], vehModel) then
1109+
if table.find(g_settings["vehicles/disallowed_warp"], vehModel) and not isPedDead(localPlayer) then
11101110
errMsg("You cannot use /sp while in this vehicle!")
11111111
return
11121112
end

0 commit comments

Comments
 (0)