ertlflorian1 Posted July 2, 2013 Share Posted July 2, 2013 I want to get the Name of the pickup which I have entered ? This isnt the full code but all variables are in the full script defined! Serversite: addEventHandler ("onPickupHit", _G["austellungscar"..tostring (ausstellungsvehid)], function (player) if not (isPedInVehicle(player)) then if (getElementData (player, "isWangCarsInfoShowed") == false) or (getElementData (player, "isWangCarsInfoShowed") == nil) then local preis = getElementData (source, "Preis"..source) -- here i must have the name of the pickup local Name = getElementData (source, "Namek"..source) setElementData (player, "isWangCarsInfoShowed", true) if (fileExists ("/data/cars/"..Name..".jpg")== true) then triggerClientEvent (player, "showWangCarsGui", player, player, Name, tonumber (preis), true) else triggerClientEvent (player, "showWangCarsGui", player, player, Name, tonumber (preis), false) end end end end) Link to comment
Castillo Posted July 2, 2013 Share Posted July 2, 2013 What do you mean with the "name"? Link to comment
ertlflorian1 Posted July 2, 2013 Author Share Posted July 2, 2013 test = createPickup (....) then I want to get "test" Link to comment
Castillo Posted July 2, 2013 Share Posted July 2, 2013 Why would you need to get the variable name? Link to comment
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