Jump to content

[Help] I can go Inside the Object


Recommended Posts

Posted
hello i've a problem i've created an object but.... i can go inside it how can i fix that?

use

setElementCollisionsEnabled() 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

not working but have a look at my script

  
function base() 
if source == GUIEditor.button[1] then 
local x, y, z = getElementPosition(localPlayer) 
base = createObject(8240, x , y +5 , z +5 ) 
setObjectScale(base, 0.5) 
baseCol = createColSphere(x , y +5, z +5) 
attachElements(baseCol, base, 0, 0, 0) 
end 
end 
addEventHandler("onClientGUIClick", root, base)   

2vjs7it.jpg
Posted (edited)

??? lol did you try it because i can't see the function in your code.

Edited by Guest

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

that's because you changed the visible size of the object. try this

  
-- Client side 
function base() 
    if source == GUIEditor.button[1] then 
        triggerServerEvent("eventName",localPlayer) 
    end 
end 
addEventHandler("onClientGUIClick", root, base)  
  
-- Server side 
function functionName() 
    local x, y, z = getElementPosition(source) 
    local base = createObject(8240, x , y +5 , z +5 ) 
    baseCol = createColSphere(x , y +5, z +5) 
    attachElements(baseCol, base, 0, 0, 0) 
    if base then  
    setObjectScale(base, 0.5) 
    setElementCollisionsEnabled(base, true) 
   end  
end  
addEvent("eventName",true) 
addEventHandler("eventName",root,functionName) 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted
not working

What do you mean by "i can go inside it" , post SS here.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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