Jump to content

[Help :l]Ramp With Marker


HunT

Recommended Posts

Posted

proracer, he doesn't even want to learn i'm guessing, since he said "i hate scripts"

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
seriously, if you hate it, then do something else with your time, thank you.

Omg guys i joked!!

local root = getRootElement() 
local this = getThisResource() 
local resourceRoot = getResourceRootElement(this) 
local localPlayer = getLocalPlayer() 
local Marker = {} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        Marker[1] = createMarker(....,...., ....., "corona", 10, 0, 0, 0) 
         
         
         
    end 
) 
  
addEventHandler("onClientResourceStop", root, 
    function(res) 
        if res == this then 
             
             
     
     
     
      
        end 
    end 
) 
  
addEventHandler("onClientMarkerHit", root, 
    function(player, matchingDimension) 
        if not matchingDimension then return end 
         
        if player == localPlayer and isPedInVehicle(player) then 
            local vehicle = getPedOccupiedVehicle(player) 
  
             
            if source == Marker[1] then 
             
             
            ??????????????????????????????????????????????? 
                 
                             
            end 
        end 
    end 
) 

edit : I don't want to learn. . .I need alone help

  • MTA Team
Posted

"How to give a player a ramp that is handled by a bind and command? How to make it when you press that key it will spawn a client/server in front of the person and thus making the person jump (unless that person swerves around it)" is the correct way of asking your question, I think.

Posted

with this code attachElements no work :cry:

elseif source == Marker[2] then 
             local x, y, z = getElementPosition ( source )  
      local ramp = createObject ( 1633, x, y, z )  
      attachElements ( ramp, source, 0, 0, 0 ) 

createObject work :D attachElements no work :shock: . . . whi? (look video)

Posted
because source is a marker, not a vehicle

I don't need your help. . . Aspect other scripters.

In my posts not to answer please.

8p9byph8pn_3637532_1708432.png

?

Posted

Resolved :D

Tnx for support proracer.

local x, y, z = getElementPosition ( source )  
      local ramp = createObject ( 1633, x, y, z )  
      attachElements ( ramp, vehicle, 0, 0, 0 ) 

Posted
because source is a marker, not a vehicle

I don't need your help. . . Aspect other scripters.

In my posts not to answer please.

Hahaha, aiboforcen it's a good member that helps everyone, your problem is that you don't understand him, maybe because of your shity english ;)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
because source is a marker, not a vehicle

I don't need your help. . . Aspect other scripters.

In my posts not to answer please.

Hahaha, aiboforcen it's a good member that helps everyone, your problem is that you don't understand him, maybe because of your :~ english ;)

Hate for other motive.

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