Jump to content
  • 0

[help]Ghost Mode


carli

Question

Posted (edited)

 

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)

 

 

 

Edited by carli

2 answers to this question

Recommended Posts

  • 0
Posted

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    
    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
        end
    end
end)

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