Jump to content
RAGE Multiplayer Community

Change data through client side


Skeizy
 Share

Recommended Posts

Hi, i'm working at vehicle system and was thinking about how to save data about cars. I looked at some posts at forum, but they were saving that in vehicle array (vehicle.owner = player.name). 

I just want to ask if its possible to edit vehicle data through client side and what's the best way to store data.

And also i want to know if its possible to edit client script white game's running, i mean when is player connected to server.

I just had a idea to do it through array like that and loop that if someone enter car, but i'm not sure:

var vehid = mp.vehicles.new(mp.joaat(vehicle), position,
{
  heading: player.heading,
  dimension: player.dimension,
  locked: false,
  engine: false,
  numberPlate: "SPZ-1748",
  color: [[50, 255, 0],[90, 255, 0]]
});

p_vehicles[vehid.id] = {
  heading: player.heading,
  dimension: player.dimension,
  owner: player.name,
  locked: false,
  engine: false,
  numberPlate: "SPZ-1748",
  color: [[50, 255, 0],[90, 255, 0]]
}

 

Thanks.

 

Edited by Skeizy
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...