iRack Posted June 3, 2019 Share Posted June 3, 2019 Hi! Can someone help me? It didn't worked for me addEvent("Arrow", true) addEventHandler("Arrow", root, function() local l_11_0 = getElementData(source, "carro") if not isElement(l_11_0) then outputChatBox(" *You do not have a vehicle!", source, 255, 0, 0) return end if l_11_0 and isElement(l_11_0) then if isElement(l_0_5[source]) then destroyElement(l_0_5[source]) outputChatBox(" *The arrow has been removed from your vehicle.", source, 255, 0, 0) else local l_11_1, l_11_2, l_11_3 = getElementPosition(l_11_0) l_0_5[source] = createObject(1318, l_11_1, l_11_2, l_11_3 + 2, 0, 0, 0) attachElements(l_0_5[source], l_11_0, 0, 0, 2) outputChatBox(" *The arrow has been attached to your vehicle.", source, 0, 255, 0) end end end ) and carro is : veiculo = {} function carro() if getPedOccupiedVehicle(source) then displayServerMessage(source, "Get Out Of The Vehicle First", "warning") return end if veiculo[source] and isElement(veiculo[source]) then destroyElement(veiculo[source]) end local x, y, z = getElementPosition(source) veiculo[source] = createVehicle(541, x, y, z) warpPedIntoVehicle(source, veiculo[source]) displayServerMessage(source, "You Got a BMW M4 VIP", "confirm") end addEvent("carro", true) addEventHandler("carro", getRootElement(), carro) Please help me. When I try to make the arrow it sais: ''You do not have a vehicle''! Help me please!! Link to comment
Moderators IIYAMA Posted June 3, 2019 Moderators Share Posted June 3, 2019 @iRack I do not recommend posting ripped stuff, the owner might get mad at you. Just saying. local l_11_1, l_11_2, l_11_3 = getElementPosition(l_11_0) 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