Jump to content

Help with objects


Recommended Posts

  • Moderators

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)

Link to comment
  • Moderators

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 

Link to comment
  • Moderators

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)

Link to comment

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