Main Menu
Menu

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.

Show posts Menu

Topics - Lucy

#1
^
#2
Module Releases / INI module
February 23, 2019, 03:09:40 PM

INI module

Installation

Add to your server.xml in <modules> section]
<module src="INI" />
[/code]

Example

ptr = module.ini.create();

ptr.loadFile("abc.txt")

ptr.setString("Section", "Test", "Hello world!", "Comment example");

ptr.saveFile("abc.txt")

module.ini.delete(ptr);

Functions/props availables
[spoiler]
* ptr.errno(int errid)

* ptr.reset();

* ptr.delete(string szSection, string szKey, bool bRemoveEmpty = true);

* ptr.isEmpty();

* ptr.isMultiKey();

* ptr.isMultiLine();

* ptr.isUnicode();

* ptr.isUsingSpaces()

* ptr.setUnicode(bool bUnicode)

* ptr.loadFile(string szFile)

* ptr.saveFile(string szFile, bool bSign)

* ptr.getBoolValue(string szSection, string szKey, bool bDefaultValue = false)

* ptr.getIntValue(string szSection, string szKey, int iDefaultValue = 0)

* ptr.getFloatValue(string szSection, string szKey, float fDefaultValue = 0.0)

* ptr.getString(string szSection, string szKey, string szDefaultValue = "")

* ptr.setBoolValue(string szSection, string szKey, bool bValue, string szComment = "", bool bForceReplace = false)

* ptr.setIntValue(string szSection, string szKey, int iValue, string szComment = "", bool bUseHex = false, bool bForceReplace = false)

* ptr.setFloatValue(string szSection, string szKey, float fValue, string szComment = "", bool bReplace = false)

* ptr.setString(string szSection, string szKey, string szValue, string szComment = "", bool bForceReplace = false)
[/spoiler]

https]Download[/url]
#3
Archive / [ADDED] Server ARM builds
January 26, 2019, 02:26:31 AM
So we could host the server for example in a raspberry pi.
#4
Archive / [ADDED] Enter/exit vehicle event
December 29, 2018, 06:58:36 PM
Currently, we have (only serversided) onPedEnterVehicle, which is called a lot of times instead of once.



A single enter/exit before and after events would be really useful.
#5
Suggestions / Stop vehicle when driveTo is used
December 27, 2018, 01:46:56 PM
When driveTo is used, vehicle can't be driven.



vehicle.stop();
#6
Archive / [ADDED] Money inc/dec animation
December 27, 2018, 01:30:12 PM
Using localPlayer.money it just changes the money directly instead of using the animation of increasing/decreasing.
#7
Archive / [ADDED] Read weapon ammo from slots/id
December 27, 2018, 01:19:15 PM
SA/VC:

player.getWeaponAmmoFromSlot(int slotId);

III:

player.getWeaponAmmoFromSlot(int weaponId);