I don't like when the people are asking me in private for some scripts, so i'm gonna release my carmod script.
Features:
∗ You can drive a car
∗ You can turn up the changes
∗ You can turn down the changes
∗ You can get in without driving
∗ Vehicles have liters of oil
∗ You can crash
∗ You can destroy your car
∗ You can't act while crash
∗ You can bring people in your car
∗ You can create your cars with console commands.
How to use it in game
To Drive the car you have to press "E"
To toggle the changes "F2" and "F3"
To get in without drive "F4"
I added a console command to spawn cars:
spawncar <x> <y> <max changes> <rot> <sprite dir> <sprite scale X> <sprite scale Y> <fuel> <health>
Example:
Zitat:
spawncar 176 336 10 180 gfx/starkkz/Cars/swatcar.bmp 80 136 10000 1000
What you can / can't do with this script
√ Edit It.
× Upload it.
× Say it's your script.
Here's a youtube video:
http://www.youtube.com/watch?v=pkIuw8oYqfg
--- LUA FUNCTIONS ---
Tutorial: How to create the vehicle with Lua.
We have to create a table with parametters.
Spoiler >
Here's an example of a car
Code:
Vehicle.new({
x = 176,
y = 336,
maxchanges = 10,
rot = 180,
img = "gfx/starkkz/Cars/swatcar.bmp",
spritescale = {
x = 80,
y = 136
},
fuel = 10000,
health = 1000
})
Lua Functions for Carmod:
Spoiler >
Bugs
If you find any bug please PM me.
And, that's all what do i have to tell, Enjoy it.