Jump to content

Help with objects


Recommended Posts

Posted

I am working on a script that uses objects as hats wih bone_attach as dependecy

when i put some hats and put the camera clode to it they jut disapear or become inviseble

what is the command that turns that off or changes IDK the distance

  • Moderators
Posted

You also tried it without put it at your head?

and what happens when you change it to a low lod object?

createObject ( id, x, y, z,  0, 0, 0, true) -- low lod 

  • Moderators
Posted

You can set all objects to low lod, (as far I know)

You only have to fill in the correct syntax:

not low lod, but does have col:

createObject ( id, x, y, z, 0, 0, 0, false)

Is low lod, but does not have a col:

createObject ( id, x, y, z, 0, 0, 0, true)

  • Moderators
Posted

You have this problem with all objects? ( not much wrong with the code, only not really build on performance )

Some other things I did noticed about your code.

-- you said server side. 
  
  
addEventHandler("onClientResourceStart", getRootElement(),--onResourceStart 
        function () 
                setInteriorSoundsEnabled(false) 
        end 
); 
  
-- you only have to index this one time: (local value is faster than re-index global tables for every single thing.) 
local myObject = object[source] 
  
-- try to use "elseif" 
  
if a > 1 then -- if 
elseif a < 1 then -- if not "if a > 1 then", then check again. 
end 

Posted

the interior sounds was a part that isnt related to the mod it self xD

but that is only with that object i put SS

so how i can i fix it?

(IDK if you tested the script by yourself ,becouse only by testing you can see the "object bug by yourself")

  • Moderators
Posted

I did test it, and yes. It disappears.

I also checked if it had something to do with the ped. (with runcode)

But no it isn't because of the ped, it is probably because after you scaled the object it got bugged.

It have something to do with the distance from your camera to the object. But also the direction of the camera.

and no you can't fix it, it is a gta san bug or maybe mta object scale bug.

I will recommend you to remove your script from the forum. (else little kids will go play with it)

Sorry that it can't be fixed. (I deleted the script from my pc)

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