Jump to content

help


WASSIm.

Recommended Posts

hi guys i need help

idk why is not working !

addEventHandler ( "onClientRender", root,  
    function() 
        if ( getElementType ( source ) == "pickup" ) then 
                x, y, z = getElementPosition ( source )  
            createMarker ( x, y, z, "cylinder", 0.5, 255, 0, 0, 170 ) 
            setElementFrozen ( source, true ) 
            setElementAlpha(source, 100) 
        end 
    end 
) 

Link to comment

You Can Do Like That e.g ;

addEventHandler("onClientResourceStart",resourceRoot, 
function  ( ) 
    local x,y,z = x,y,z -- Put the Pickup and Marker Position -- put it the same the marker and the pickup! 
    local pickup = createPickup( x,y,z -0.3,3,1212 ); 
    local marker = createMarker( x,y,z,"corona",1,0, 255, 0, 100 ); 
    local element = attachElements( pickup,marker ); 
end 
); 

Can you test it and tell me the results you get :) .

Link to comment
You Can Do Like That e.g ;
addEventHandler("onClientResourceStart",resourceRoot, 
function  ( ) 
    local x,y,z = x,y,z -- Put the Pickup and Marker Position -- put it the same the marker and the pickup! 
    local pickup = createPickup( x,y,z -0.3,3,1212 ); 
    local marker = createMarker( x,y,z,"corona",1,0, 255, 0, 100 ); 
    local element = attachElements( pickup,marker ); 
end 
); 

Can you test it and tell me the results you get :) .

nothing marker xD

but i want all pickup not to one script

and i want droped :( like that photo

Link to comment

I'm not to familiar with the items, but if you want it that way then you have to find the object id of it on map editor and when a player dies set the object on the floor.

If you played some dayz or roleplay servers you can see guns can be set on the floor. Experiment with it.

Link to comment
You Can Do Like That e.g ;
addEventHandler("onClientResourceStart",resourceRoot, 
function  ( ) 
    local x,y,z = x,y,z -- Put the Pickup and Marker Position -- put it the same the marker and the pickup! 
    local pickup = createPickup( x,y,z -0.3,3,1212 ); 
    local marker = createMarker( x,y,z,"corona",1,0, 255, 0, 100 ); 
    local element = attachElements( pickup,marker ); 
end 
); 

Can you test it and tell me the results you get :) .

nothing marker xD

but i want all pickup not to one script

and i want droped :( like that photo

Post your code this was should work .

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