User contributions for Habi
Jump to navigation
Jump to search
5 June 2023
- 15:1615:16, 5 June 2023 diff hist +93 LibRPC →'F' type function
29 May 2023
- 18:2118:21, 29 May 2023 diff hist +2,653 N Walking man Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script uses SetAnim every 100 ms. </poem> <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script requires modules: LibRPC and z-finder. </poem> <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script is made as of npcclient version 1.6 beta 4 patch 1. </poem> ==Server Side== 1. In scripts/main.nut..."
- 18:0418:04, 29 May 2023 diff hist +37 Main Page No edit summary
25 May 2023
- 19:4319:43, 25 May 2023 diff hist +82 V1 6 beta4 release notes →What is new? current
- 19:2219:22, 25 May 2023 diff hist +8 Main Page No edit summary
- 19:1919:19, 25 May 2023 diff hist +1 V1 6 beta4 release notes →API
- 19:1919:19, 25 May 2023 diff hist +12 V1 6 beta4 release notes →Plugins included with downloads
- 19:1719:17, 25 May 2023 diff hist +9 V1 6 beta4 release notes →Downloads
- 19:1519:15, 25 May 2023 diff hist −8 V1 6 beta4 release notes →Downloads
- 19:1419:14, 25 May 2023 diff hist 0 V1 6 beta4 release notes →Downloads
- 19:1419:14, 25 May 2023 diff hist 0 V1 6 beta4 release notes →Downloads
- 19:0419:04, 25 May 2023 diff hist +10 V1 6 beta4 release notes →Plugins included with downloads
- 18:5218:52, 25 May 2023 diff hist +47 V1 6 beta4 release notes No edit summary
- 18:3418:34, 25 May 2023 diff hist +4 RequestClass No edit summary current
- 18:3418:34, 25 May 2023 diff hist +92 RequestSpawn No edit summary
- 18:3318:33, 25 May 2023 diff hist +121 RequestClass No edit summary
- 08:1508:15, 25 May 2023 diff hist +97 OnNPCClassSelect No edit summary
- 08:1208:12, 25 May 2023 diff hist −11 OnNPCClassSelect No edit summary
24 May 2023
- 16:4716:47, 24 May 2023 diff hist +36 Main Page No edit summary
- 16:4616:46, 24 May 2023 diff hist +10 OnNPCClassSelect No edit summary
- 16:4516:45, 24 May 2023 diff hist +27 OnNPCClassSelect No edit summary
- 16:4216:42, 24 May 2023 diff hist +239 RequestSpawn No edit summary
- 16:4116:41, 24 May 2023 diff hist +1 OnNPCClassSelect No edit summary
- 16:4016:40, 24 May 2023 diff hist +110 OnNPCClassSelect No edit summary
- 16:3916:39, 24 May 2023 diff hist +1 RequestSpawn No edit summary
- 16:3816:38, 24 May 2023 diff hist +492 N RequestSpawn Created page with "{{Welcome| desc=This will send a request to server for spawning in the currently selected class.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight> example=<source lang="lua"> function OnNPCClassSelect() { if(GetPlayerTeam(GetMyID())==2) RequestSpawn(); return 1 } </source>| note= Inside the function, use Team, color, position to check if the class matches as it is not possible to obtain the class id directly.| relfuncs=*RequestClass *OnNP..."
- 16:1916:19, 24 May 2023 diff hist +604 N RequestClass Created page with "{{Welcome| desc=This will send a request to server to show class for spawning.| params=<syntaxhighlight lang="lua">(relativeclass=CLASS_CURRENT)</syntaxhighlight> <poem>::relativeclass : Optional parameter. Values can be CLASS_PREVIOUS, CLASS_NEXT. If former value is used, then the server will show previous class. If latter value is used, then server will show next class. If paramter omitted or CLASS_CURRENT is used, the server will show the current class( before npc was..."
- 16:0316:03, 24 May 2023 diff hist +869 N OnNPCClassSelect Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 patch2 and will not work on previous versions. </poem> {{Welcome| desc=This function is called when server grants a class to NPC to select for spawning. This function is called not when npc selects a class, but rather when a class is presented to npc.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| retvals=Return true if RequestSpawn..."
- 15:2815:28, 24 May 2023 diff hist +33 Main Page No edit summary
8 May 2023
- 18:3718:37, 8 May 2023 diff hist +184 GetAmmoOfMyWeapon No edit summary current
- 18:3718:37, 8 May 2023 diff hist +184 GetAvailableWeapons No edit summary current
- 18:3718:37, 8 May 2023 diff hist +183 SelectWeapon No edit summary current
- 18:3518:35, 8 May 2023 diff hist +411 N GetAmmoOfMyWeapon Created page with "{{Welcome| desc=Returns the ammo of the weapon specified| params=<source lang="lua">(weaponid)</source> ::weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.| retvals=If the weapon is possessed by npc, then this returns the available ammo of the weapon provided. Otherwise returns 0. Also returns 0 for fists/brass knuckles.| relfuncs= *SelectWeapon *GetAvailableWeapons| }}"
- 18:3018:30, 8 May 2023 diff hist +397 N GetAvailableWeapons Created page with "{{Welcome|desc=Returns all the weapons possessed by npc as an array| params=<source lang="lua">NoParams</source>| retvals=an array whose values are the IDs of the weapons possessed by the npc. The weaponid 0 (fists) is excluded.| relfuncs= *SelectWeapon *GetAmmoOfMyWeapon| example= <source lang="lua"> local a = GetAvailableWeapons(); SendChat("I have "+ a.len()+" weapons.");</source> }}"
- 18:2618:26, 8 May 2023 diff hist +28 SelectWeapon No edit summary
- 18:2618:26, 8 May 2023 diff hist +283 N SelectWeapon Created page with "{{Welcome|desc=Sets the npc's current weapon and sends a sync packet if on foot.| params=(weaponid) <poem> ::weaponid : The Id of the weapon </poem>| retvals=true on success, false if the weapon is not possessed by npc.| relfuncs= *GetAvailableWeapons *GetAmmoOfMyWeapon |}}"
- 18:2118:21, 8 May 2023 diff hist +81 Main Page No edit summary
7 May 2023
- 18:4618:46, 7 May 2023 diff hist +12 RFC No edit summary current
- 18:4618:46, 7 May 2023 diff hist −6 RFC No edit summary
- 18:4418:44, 7 May 2023 diff hist +175 RFC No edit summary
- 18:3918:39, 7 May 2023 diff hist +36 V1 6 beta4 release notes →Downloads
- 18:3718:37, 7 May 2023 diff hist +129 V1 6 beta4 release notes No edit summary
- 17:5417:54, 7 May 2023 diff hist +15 Z-finder →Links current
- 17:5317:53, 7 May 2023 diff hist +345 Z-finder No edit summary
6 May 2023
- 05:5805:58, 6 May 2023 diff hist −39 Z-finder No edit summary
- 05:5805:58, 6 May 2023 diff hist +61 Z-finder No edit summary
- 05:5505:55, 6 May 2023 diff hist +89 Z-finder →Links
- 05:4205:42, 6 May 2023 diff hist +125 Z-finder No edit summary
- 05:3705:37, 6 May 2023 diff hist +1,142 N Z-finder Created page with "This library is used to get the ground z co-ordinate for the npc to walk. It relies on 16 MB file default.map ( vice city map ). z-finder is ported from [https://forum.vc-mp.org/index.php?topic=9006 Miami-Scale] plugin of server. ==Functions== {| class="wikitable" ! Return value !! Function Name !! Parameter !! Description |- | true on success || MiamiScale_Init || [string] mapfile || The full path to mapfile as parameter |- | true or null || MiamiScale_Unload || - || |..."
- 05:3105:31, 6 May 2023 diff hist +31 Main Page No edit summary