Vehicle Kits - Wheel Stancer, Nitro Kits, Custom Engine and Turbo!

is there any “special” version of esx required like 1.1 or final ? i cant use it Standalone either lol gives me a Script error in Server lua 104

Is there a reason why the script just decides to break when i drive and the wheels reset themselves?

Can you tell what script?
If its stancer, it does work on esx older version too.

Thanks

@ogdan133
Is onesync enable?

yeah it’s enabled but every once in a while the wheel camber wont stick but the suspension height would save

@ogdan133
you mean its like flickering?
if yes i might really need to do it 0ms wait time…but this will decrease the performance a little bit.

you can try changing the line 289
sleep = 0

bubble always say 0ms is the best for all specially for high FPS.

[      script:stancer] SCRIPT ERROR: Execution of native 00000000e8522d58 in script host failed: Tried to access invalid entity: 137805
[      script:stancer] > GetVehicleNumberPlateText (GetVehicleNumberPlateText.lua:2)
[      script:stancer] > handler (@stancer/server.lua:123)

Getting this at random times.

Can this be the issue when a vehicle is created and deleted in few seconds?

Fix :

AddEventHandler('entityCreated', function(entity)
  local entity = entity
  if DoesEntityExist(entity) and GetEntityPopulationType(entity) == 7 and GetEntityType(entity) == 2 then
    Wait(4000)
    if DoesEntityExist(entity) == false then
      return
    end
    local plate = GetVehicleNumberPlateText(entity)
    if stancer[plate] and stancer[plate].stancer then
      local ent = Entity(entity).state
      ent.stancer = stancer[plate].stancer
      stancer[plate].online = true
    end
  end
end)

thats the case, if entity is qued for creation and deleted from client before it reaches the 4 second check (for owned plate gen)

1 Like

This usually happens when they cycle cars in PDM or take one out from a PD garage for few seconds to see how they look.

PDM? and PD garage?

you mean choosing from showroom or garage

spawn it as not network , so it wont throw a signal for entitycreation

does your version of stancer does not have this DoesEntityExist(entity)?

this is the updated version (fixed maybe 3-4 days after release)

AddEventHandler('entityCreated', function(entity)
  local entity = entity
  Wait(4000)
  if DoesEntityExist(entity) and GetEntityPopulationType(entity) == 7 and GetEntityType(entity) == 2 then
    local plate = GetVehicleNumberPlateText(entity)
    if stancer[plate] and stancer[plate].stancer then
      local ent = Entity(entity).state
      ent.stancer = stancer[plate].stancer
      stancer[plate].online = true
    end
  end
end)
1 Like

I get this error

Updating server file will avoid this.

You mean updating artifacts? or updating esx be more clear please

the stancer resource, sorry i am not clear

Whats the use of /changenitro and how does the nitrobottle2, nitrobottle3 work?