TrevorBarns / luxart-vehicle-control

A siren / (non-els) emergency lights controller for FiveM.
https://www.luxartengineering.com/
GNU General Public License v3.0
135 stars 56 forks source link

Attempt to call a nil value (method 'BuildShortCutMenus') #66

Closed Snipeur060 closed 2 years ago

Snipeur060 commented 2 years ago

After 2/3 minutes some control of lvc don't work for example start light A or E but only the lock key work EDIT: (and no error is displayed)

TrevorBarns commented 2 years ago

Neither A nor E should toggle lights on LVC. Lvc uses Q for lights E for horn. Sounds like another resource is conflictint. Try disabling other resources.

Snipeur060 commented 2 years ago

Hey i find something the problem is not with the E or A image

Snipeur060 commented 2 years ago

but this when you press the up arrow

TrevorBarns commented 2 years ago

Reinstall following the wiki, do not download source code.

Snipeur060 commented 2 years ago

Same problem

TrevorBarns commented 2 years ago

Well you didn't delete the development files, you have to delete lvc and reinstall from the releases page you downloaded the source code that's still in development.

Snipeur060 commented 2 years ago

yes and i do this now

Snipeur060 commented 2 years ago

but change nothing

TrevorBarns commented 2 years ago

It's not a bug, you just aren't following the instructions. If you delete the lvc and download the release you will not have this issue. Screenshot_20220815-094155.png

Snipeur060 commented 2 years ago

Do you understand that I do what you said before download the release but it's the same thing

Snipeur060 commented 2 years ago

I have the same problem

Snipeur060 commented 2 years ago

I delete and reinstall lvc

TrevorBarns commented 2 years ago

I don't know how to help you that error is associated with code that cannot be found in 'Luxart.Vehicle.Control.v3.2.8-rev1.zip', it was not written yet.

If you've deleted all of your lvc folder and reinstalled lvc following the wiki, it isn't possible for that error to occur.

Either:

Snipeur060 commented 2 years ago

I do all of this things

Snipeur060 commented 2 years ago
image
Snipeur060 commented 2 years ago

Note: the same when you pressed up arrow

TrevorBarns commented 2 years ago

Okay, that is a completely different error, it occurs regardless of the up-arrow, since the script can't start. That error occurs when RageUI is not installed correctly.

  1. Copy RageUI folder from 'dependencies' folder in resources folder.
Snipeur060 commented 2 years ago

i have a question i already have rageui and i need to put this rageui ?

TrevorBarns commented 2 years ago

Snipeur060 commented 2 years ago

I will try

Snipeur060 commented 2 years ago

So now i have another problem a little part of vehicules don't work you press E and you have the light but lvc don't control this vehicule https://github.com/TrevorBarns/luxart-vehicle-control/issues/61 Same problem But i change the meta and nothing change

Snipeur060 commented 2 years ago

And thanks up arrow work now

Snipeur060 commented 2 years ago

if you have any fix i will take it (all of the car have the flag emergency and led)

TrevorBarns commented 2 years ago

You referenced #61 which was a user error with vehicle installation. You likely have the same problem.

LVC only requires:

If it is not working it is a problem with your vehicle installation / configuration. I am not sure what insight I can provide.

Snipeur060 commented 2 years ago

So gamename and it's good ?

TrevorBarns commented 2 years ago

No.

You either need a profile for that vehicle using the vehicles game name OR a DEFAULT profile table. Which you likely already have.

If it's still not working its a problem with vehicle.

Snipeur060 commented 2 years ago

` megane3pn

 <modelName>megane3pn</modelName>
  <txdName>megane3pn</txdName>
  <handlingId>POLICE</handlingId>
  <gameName>POLICE</gameName>
  <vehicleMakeName>RENAULT</vehicleMakeName>
  <expressionDictName>null</expressionDictName>
  <expressionName>null</expressionName>
  <animConvRoofDictName>null</animConvRoofDictName>
  <animConvRoofName>null</animConvRoofName>
  <animConvRoofWindowsAffected />
  <ptfxAssetName>null</ptfxAssetName>
  <audioNameHash>POLICE</audioNameHash>

`

Snipeur060 commented 2 years ago

this will be correct ?

TrevorBarns commented 2 years ago

In that case in your SIRENS.lua you would use:

['POLICE'] = {...}

Snipeur060 commented 2 years ago

I will try

Snipeur060 commented 2 years ago

It's good i find why <type>VEHICLE_TYPE_EMERGENCY</type> <vehicleClass>VC_EMERGENCY</vehicleClass> Need to be on this value