Jump to content

help anyone


[S.K]

Recommended Posts

I guess replace the txd or even better use this:

https://wiki.multitheftauto.com/wiki/DxDrawImage3D

but I have no idea how the latter works and I've never seen it in use but I can only figure that it's hella awesome

But to eleborate on the txd way, the way inferior way that was acceptable until the spawn of that function fantastico, use mta map editor's get real world object tool (I believe the most right one at the bottom left set of tools) and then edit that txd using the tools gta modders use

Link to comment

help with this

theVehicle = { } 
  
function admt ( thePlayer ) 
    if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "VIP" ) ) then 
        local x, y, z = getElementPosition ( thePlayer ) 
        local rx, ry, rz = getElementRotation ( thePlayer ) 
        theVehicle [ thePlayer ] = createVehicle ( 370, x, y, z, rx, ry, rz, "vipjetpack" ) 
        local handlingTable = getVehicleHandling ( theVehicle [ thePlayer ] ) 
        warpPedIntoVehicle ( thePlayer, theVehicle [ thePlayer ] ) 
        local newVelocity = ( handlingTable [ "maxVelocity" ] + ( handlingTable [ "maxVelocity" ] / 100 * 40 ) ) 
    end 
end 
addCommandHandler ( "vipjetpack", admt ) 

Link to comment
addCommandHandler ( "vipjetpack", 
    function ( thePlayer ) 
        if doesPedHaveJetPack ( thePlayer ) then -- If the player have a jetpack already, remove it 
            removePedJetPack ( thePlayer ) -- Remove the jetpack 
            return -- And stop the function here 
        end 
  
     -- Otherwise, give him one if he has access 
  
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then -- Does he have access to Admin functions? 
          if not doesPedHaveJetPack ( thePlayer ) then -- If the player doesn't have a jetpack give it. 
               givePedJetPack ( thePlayer )  -- Give the jetpack 
          end 
     end 
end 
) 

Code from Wiki

[s.K] Again, LAST TIME! STOP ASKING FOR SCRIPTS!

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