Jump to content

Patrol car can warp me crime


Jumper_Mych

Recommended Posts

Get this warpPedIntoVehicle that needs! thanks you Scooby!

And check all? (I guess have full error :roll: )

Code by Jumper_Mych

skin = { [280]=true,[281]=true } 
vehicle = { [596]=true, [599]=true } 
  
function bwarp ( thePlayer, command, who ) 
    if isElement(vehicle[thePlayer]) then 
        local aeg = getPlayerFromName ( who ) 
        isPedInVehicle ( thePlayer ) 
        warpPedIntoVehicle ( aeg, skin ) 
    end 
end 
addCommandHandler ( "warp", bwarp ) 
  

Link to comment

try this,

vehicle = { [596]=true, [599]=true } 
  
function bwarp ( thePlayer, command, who ) 
local veh = getPedOccupiedVehicle(thePlayer) 
if veh then 
model = getElementModel(veh) 
    if vehicle[tonumber(model)] then 
        local aeg = getPlayerFromName ( who ) 
        isPedInVehicle ( thePlayer ) 
        warpPedIntoVehicle ( aeg, veh ) 
        outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) 
        end 
    end 
end 
addCommandHandler ( "warp", bwarp ) 

Link to comment
try this,
vehicle = { [596]=true, [599]=true } 
  
function bwarp ( thePlayer, command, who ) 
local veh = getPedOccupiedVehicle(thePlayer) 
if veh then 
model = getElementModel(veh) 
    if vehicle[tonumber(model)] then 
        local aeg = getPlayerFromName ( who ) 
        isPedInVehicle ( thePlayer ) 
        warpPedIntoVehicle ( aeg, veh ) 
        outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) 
        end 
    end 
end 
addCommandHandler ( "warp", bwarp ) 

that code is work, i want warp to cops car sit the back. can't sit in driver.

i not interested translator, but try translator "that the code is working, I want to warp to the police car to sit in the back. can not sit in the driver." :D

Link to comment

try this then,

  
vehicle = { [596]=true, [599]=true } 
  
function bwarp ( thePlayer, command, who ) 
local veh = getPedOccupiedVehicle(thePlayer) 
if veh then 
model = getElementModel(veh) 
    if vehicle[tonumber(model)] then 
        local aeg = getPlayerFromName ( who ) 
        isPedInVehicle ( thePlayer ) 
        warpPedIntoVehicle ( aeg, veh, 3 ) 
        outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) 
        end 
    end 
end 
addCommandHandler ( "warp", bwarp ) 

Link to comment
try this then,
  
vehicle = { [596]=true, [599]=true } 
  
function bwarp ( thePlayer, command, who ) 
local veh = getPedOccupiedVehicle(thePlayer) 
if veh then 
model = getElementModel(veh) 
    if vehicle[tonumber(model)] then 
        local aeg = getPlayerFromName ( who ) 
        isPedInVehicle ( thePlayer ) 
        warpPedIntoVehicle ( aeg, veh, 3 ) 
        outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) 
        end 
    end 
end 
addCommandHandler ( "warp", bwarp ) 

Thanks you!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...