addEventHandler("onClientElementStreamIn", resourceRoot, function()
if getElementType(source) == "object" then return false end
if (not getElementData(source, "rental")) then return end
for i,vehicle in ipairs(getElementsByType("vehicle", root, true)) do
setElementCollidableWith(source, vehicle, false)
end
end)
addEventHandler("onClientElementStreamIn", root, function()
if getElementType(source) == "object" then return false end
for i,vehicle in ipairs(getElementsByType("vehicle", resourceRoot, true)) do
if (getElementData(vehicle, "rental")) then
setElementCollidableWith(source, vehicle, false)
end
end
end)
Question
carli
hayalet modulasyon
addEventHandler("onClientElementStreamIn", resourceRoot, function()
if getElementType(source) == "object" then return false end
if (not getElementData(source, "rental")) then return end
for i,vehicle in ipairs(getElementsByType("vehicle", root, true)) do
setElementCollidableWith(source, vehicle, false)
end
end)
addEventHandler("onClientElementStreamIn", root, function()
if getElementType(source) == "object" then return false end
for i,vehicle in ipairs(getElementsByType("vehicle", resourceRoot, true)) do
if (getElementData(vehicle, "rental")) then
setElementCollidableWith(source, vehicle, false)
end
end
end)
Link to comment
2 answers to this question
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