Delete me 4

Update the variable in variables.lua to the value you want. You can also update the data-state value in the HTML but i prefer the first method.

true = ON
false = OFF
nil = OFF

NOTE: I just pushed an update to the repo to move the Vehicle Spawn toggles to be declared there instead of the HTML. See https://github.com/TheStonedTurtle/MelloTrainer/commit/40fba2505ad49dfd8143af131f575587ffe88660

thank you sir love how easy it is to edit this menu to liking I give this menu a big heart

2 Likes

they always have been selectable through skin/character pickers if you add them to the list

Will there be a save player model feature soon?

Works fine now :slight_smile: Is there any way to hear people in the spectate mode? I’m using proximity voice and because of that I can’t hear people that I spectate. It would be awesome if there was an option to hear people that we are spectating :slight_smile:

Short Answer: No, I don’t see myself adding Player/Vehicle saving anytime soon.

Long Answer: I was working on a vehicle & player save but it’d require a database and I really didn’t want to deal with CouchDB. I am currently working on a character/vehicle save but it is pretty customized for what my end goal is (Different accounts & vehicle garages) so I doubt I’ll ever come back to this feature here.

The logistics behind the spectate is your character stays in place but your camera changes to one programmed to follow the desired player.

To actually hear the players in-game chat we would have to move your character to be physically within range of the target which can lead to many issues.

Is it possible to change any of the other menu items such as the emergency vehicles under vehicle spawning to Admin Only?

Add data-require="admin" to those elements. Seeing as this is created from static JSON you will need to update the var vehicle_emergency JSON found in trainer.js (line 1131)

Example:
{ "menuName" : "Albany Police Roadcruiser (Snow)","data":{"action": "POLICEOLD2" }}
is now:
{ "menuName" : "Albany Police Roadcruiser (Snow)","data":{"action": "POLICEOLD2" , "require": "admin"}}

I haven’t tested this personally but I’m 90% sure this will work.

EDIT: You could also update the “admin” to whatever you’d like and create a new NUICallback to handle it.

In example, if you change “admin” to “emergency” and add the below code you will have just created a new requirement to do something. This could be expanded upon to create extremely complex permissions.

RegisterNUICallback("requireemergency", function(data, cb)
  -- Check if they should have access and store it as a true/false variable.
  local result = ""

  -- Check true/false variable
  if(result)then
    SendNUIMessage({adminaccess = true}) -- Do the requested action
  else
    drawNotification("You can't access this.") -- Don't do the requested action
  end
end)

if you require something that doesn’t have a NUICallback defined it will never succesfully trigger that trainer option.

1 Like

Love this trainer so far only things Ive noticed is Torq Boost and power boost do nothing all cars only get to 103 max no matter what setting I set it to and I hafta get out of the car to reopen the trainer. And I could never fully use this for the server unless we can save all our police cars and Uniforms. But man I love what you have done so far, and love the fact I can change things like the Weapons they can use and Banned Supercars and so on. Look forward to the update when we can save things. 8 stars out of 10 Nice work and Thank you so mutch for sharing this! It will help so many servers against Trolls.

Unfortunately I don’t see myself adding any functionality to save vehicles or players, see my earlier post Delete me 4

When you say i hafta get out of the car to reopen the trainer what do you mean? I can open the trainer pressing F6 while in a vehicle.

As for the Vehicle Torque/Power Boost options this has been fixed in V 0.2.0.

what hex is for the steam id? numbers, the name, what? also im trying to add my addon cars to this menu but no luck plus i dont see where the spawn names are ive looked in all the files

Is it possible to only make the F6 menu come up for Admins?

Nope, they appear invisible to other players

U can make version for only admin? Please

@mrdigital01 & @Psychorustle, V 0.2.1 has been pushed which adds the ability to lock the entire trainer to admin-only usage. See the Original Post under Features.

@Xnitro67 Most of the menu is created via static JSON located at the end of the trainer.js file. To add vehicles search for var vehicle_ add add the new options where preferred.

1 Like

Seems like a great menu, the only thing I see missing is the ability to save your vehicles unless that is a possibility already.

i press “Online players” and i hit enter and it doesn’t open, why? i am an admin

Thx @TheStonedTurtle nice share and work fine