WASSIm. Posted April 18, 2013 Posted April 18, 2013 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 )
Castillo Posted April 18, 2013 Posted April 18, 2013 That doesn't make any sense. What are you trying to do?
WASSIm. Posted April 19, 2013 Author Posted April 19, 2013 that script just for test but not working. i want make pickup like gta 4 droped look this photo
iPrestege Posted April 19, 2013 Posted April 19, 2013 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 .
WASSIm. Posted April 19, 2013 Author Posted April 19, 2013 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 but i want all pickup not to one script and i want droped like that photo
OGF Posted April 19, 2013 Posted April 19, 2013 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.
iPrestege Posted April 19, 2013 Posted April 19, 2013 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 but i want all pickup not to one script and i want droped like that photo Post your code this was should work .
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now