Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Decent_946
Scripting and Server Management / Re: Time, Weather and script fix
« on August 11th, 2017, 05:42 PM »
Error in the code is because you aren't defining the player in timer and in the function you've set extra arguments.

Code: [Select]
NewTimer ( "heal", 5000, 1, player.ID );

And change function to :
Code: [Select]
function heal(ID)
local player = FindPlayer (ID);

if (plr)

  Player.Health = 100.;
  MessagePlayer( "[#FFFF81]---> You have been healed !", player);

else return 0;

To set time, use this function

And to set server weather use SetWeather function
Scripting and Server Management / Re: Create Car Command
« on August 7th, 2017, 02:26 PM » - Use this Snippet. It contains the command /addcar. You can use that command to addcar into the server.
Script and Content Requests / Re: System TOP
« on August 5th, 2017, 11:17 PM »
Quote from Cool on August 5th, 2017, 07:18 PM
looooooooooooooooooooool #RIP coding
Why don't you script him the code than ? Although his coding style is lengthy and this function won't work for the topic starter. but he has helped him by providing complete idea of how top ranks can be set.

Btw, @longhackmc , you could use SQL LIMIT function instead of the long way method.
Support / Re: need help
« on August 5th, 2017, 08:44 AM »
Quote from Adriano^ on August 5th, 2017, 03:43 AM
I found a topic and adapted it to a function, for example: for the drive garage door for mansion use RawHideMapObject (2548, -3576, -5397,149); // to remove the object ai just create it again and use a function to move it
As a player, you can not open/hide the garage gate. Only server developers can. Make a suggestion on the servers forum for this ability.
Servers / [0.4] Re: Rob the Vehicles
« on August 4th, 2017, 04:04 PM »
Quote from Rest on August 4th, 2017, 03:00 AM
We got our new forum:
Re-register ? Why didn't you transfer old forum's database. :/
Tutorials / [Guide] Re: Vehicle Handling Stats Explored
« on August 2nd, 2017, 03:14 PM »
Thats actually a cool guide. Much informative. Which solemnly proves you are a physics student :D
Support / Re: help
« on August 1st, 2017, 11:46 AM »
did you try running it as administrator ?
Scripting and Server Management / Re: Vehicles Cost Update Issue
« on July 29th, 2017, 04:41 PM »
you can simply execute the query on function onScriptLoad()

Code: [Select]
function onScriptLoad()
QuerySQL( Vehicles, "UPDATE Cost SET = '350000' WHERE Model = '191' " );

or you can update cost of any vehilce by /exec command. ( hope you have got that command )

use, /exec
Code: [Select]
QuerySQL( Vehicles, "UPDATE Cost SET = '350000' WHERE Model = '191' " );
Skin Showroom / Re: New Tommy Model
« on July 25th, 2017, 08:41 PM »
Quote from MEGAMIND on July 25th, 2017, 07:27 PM
Quote from MatheuS on July 25th, 2017, 05:02 PM
Lol he can't even describe hows the sun he's cooked lol
Looks like tommy was wearing helmet while he was taking sun bath.
General Discussion / Re: How can I add custom things to my server?
« on July 23rd, 2017, 09:01 PM »
Check out these two boards in the image for custom content. ( )
Check this topic as well: how to add custom stuff by sebbyyy
Quote from NicusorN5 on July 23rd, 2017, 06:22 PM
It can be done using timers (can be laggy , and memory-consuming)
that's what i said. It can be done. But not already present in VC-MP.
Quote from SilviUDaciaLogan on July 22nd, 2017, 12:43 PM
Not speedometer.  Mileague. Example : 22.000km traveled.
Vcmp vehicles doesn't have got ' Mileague '  because there isn't petrol system to tell you that this vehicle will travel *dash* kilometeres in 1 litre of petrol. Although it can be made possible if you script fuel / petrol system.

If you want to know the distance you travelled since the time you entered the car till the time you exit, i guess, you can use DistanceFromPoint function. Just set you pos when entering the vehilcle and call this function on vehicle exit.
Snippet Showroom / Re: Real Speedometer!!
« on July 23rd, 2017, 04:54 PM »
Quote from SilviUDaciaLogan on July 23rd, 2017, 12:37 PM
I have a problem with CreateSprite. Help me, please!
CreateSprite function has been replaced by GUI Sprite system.

Use Doom Killers Speed-o-Meter instead.
Tutorials / [tut] Re: Objects are constantly appearing/dissappearing
« on July 23rd, 2017, 07:34 AM »
I had experienced it for the 1st time after i installed VC visual enhancement mod by hanney at lw forum. And this issue has been discussed earlier in lw community and solved as well with to solution you've provided above.
Scripting and Server Management / Re: onPlayerKill is not working
« on March 19th, 2016, 09:40 AM »
Quote from Xmair on March 19th, 2016, 09:35 AM
@Decent_946 , ever viewed the wiki?
ofc, btw, atm i am too depressed cuz of my test. so that's why..
i 1st wanted to post that function but thought to give z axis also. ;) .