[Request] License plate changer

Is there anyone out there smart enough to create a server side script for the one i link below ?

2 Likes

SetVehicleNumberPlateText(vehicle, string.char(math.random(65, 90), math.random(65, 90), math.random(65, 90)) .. " " .. math.random(100,999))

Clientside.

3 Likes

I know the script is clientside, but i want it on a server side script :slight_smile: so i was hoping someone could make it so

The server can’t handle clientside natives/functions.
What you can do is add an event server->client.
Don’t see the point of why though.

Because, our norwegian license plates are " AA 12345 " 2 letters then 5 numbers, and the cars ingame don’t. and we don’t want mods on clientside if we can get it on server side.

Sure you are not mistaking scripts and mods?
client-sided scripts are not the same as client-sided mods.

1 Like

This is a simple script that changes the license plates number on every car ingame. I just want it rewritten to a client.lua to have in our resource file on FXserver.

@itshb Rewrote it for you in the comments above!

SetVehicleNumberPlateText(vehicle, string.char(math.random(65, 90), math.random(65, 90), math.random(65, 90)) .. " " .. math.random(100,999))

@BlockBa5her removing a space will mess with the positioning on the licenseplate. There’s a reason as to why there are 2 spaces, not 1.

@NPK, You mean to tell me it’s extremely difficult to save a txt file as .lua? Amazed on how lazy todays youth is.

3 Likes

I literally just copied what you said above.

1 Like

Then exactly what did you mean by “Rewrote it for you in the comments above!”?

sorry I meant wrote.

That still makes no sense? :thinking:

Because renaming a ASI file to .lua doesnt make it work server side. if you don’t wanne help please don’t responde :slight_smile:

Are you here to show pure ignorance, or to get help with changing the license plate?
If you don’t want any line of code to change it, feel free to download the mod you found

@itshb - He meant to say that you rewrote the script above. Then he just posted it again for OP to see.

@NPK - There will be very few people to write every single script that everybody wants. Your best bet would be to learn some Lua, especially since you are running a server. This one is pretty simple. They even told you what to do.

If you don’t even know this much about scripting then this is sad. ASI files are a (when comiled) a file of bytes while lua is a straight up text document, like what @Briglair said above, you should learn LUA yourself and stop asking everyone.

extremely negative and toxic behavior, why do you bother us?

1 Like

Why post on a 2 year old topic? please mind the topic dates.

1 Like