Jump to content

toggleAllControls problem


ertlflorian1

Recommended Posts

function eject2(thePlayer,cmd,target) 
if getPedOccupiedVehicleSeat(thePlayer) == 0 then 
local target = getPlayerFromName (target) 
if target then 
if getPedOccupiedVehicle(target) == getPedOccupiedVehicle(thePlayer) then 
isElementWithinColShape (target, Zelle) 
removePedFromVehicle (target) 
setElementPosition (target, 2281.462890625, 2428.2451171875, 3.2734375) 
setPedAnimation( target, "crack", "crckdeth2",-1,true,true,false) 
toggleAllControls(target,false,true,false) 
setTimer ( austazer, 15000, 1) 
end 
end 
end 
end 
addCommandHandler("out",eject2) 
  
  
function austazer(target) 
setPedAnimation( target ) 
toggleAllControls(target,true,true,false) 
end 

Hi can somebody help me the time wouldnt work :(

Link to comment
function eject2(thePlayer,cmd,target) 
    if getPedOccupiedVehicleSeat(thePlayer) == 0 then 
        local target = getPlayerFromName (target) 
        if target then 
            if getPedOccupiedVehicle(target) == getPedOccupiedVehicle(thePlayer) then 
                isElementWithinColShape (target, Zelle) 
                removePedFromVehicle (target) 
                setElementPosition (target, 2281.462890625, 2428.2451171875, 3.2734375) 
                setPedAnimation( target, "crack", "crckdeth2",-1,true,true,false) 
                toggleAllControls(target,false,true,false) 
                setTimer ( austazer, 15000, 1,target) 
            end 
        end 
    end 
end 
addCommandHandler("out",eject2) 
  
  
function austazer(target) 
    setPedAnimation( target ) 
    toggleAllControls(target,true,true,false) 
end 
  

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...