Some suggestions for native functions for SA-MP 0.3.9:
TogglePlayerHUD
Description: Shows or hide the GTA HUD.
Parameters: (playerid, toggle)
- playerid - The ID of the player who should toggle HUD.
- toggle - 1 to show and 0 to hide.
TogglePlayerControllable
Description: It allows to manage the movements of the PED and the camera of the player.
Parameters: (playerid, pos, cam=1)
- playerid - The ID of the player will be change the controllable position or camera.
- pos - 1 to freeze the position movements and 0 to unfreeze the position movements.
- cam - 1 to freeze the camera movements and 0 to unfreeze the camera movements. Default is 1 (camera freezed)
ToggleVehicleMarkers
Description: It allows to hide or shows the vehicles markers in minimap. Can uses only in OnGamemodeInit
Parameters: (toggle)
- toggle - 1 to show the vehicles markers in minimap and 0 to hide the vehicles markers in minimap.
AttachedPlayerObjects
Description: Increase player attached objects to 20.
AddVehicleModel
Description: The possibility to add custom vehicles. Like the function of custom skins, the new vehicles would copy attributes from existing vehicles. The possibility of visual tuning would be disabled for custom vehicles, only giving the possibility of adding nitro and if possible changing the wheels.
Parameters: (vehicleid_base, new_vehicleid, dffname[], txdname[])
- vehicleid_base - The base vehicle ID to use.
- new_vehicleid - The new vehicle ID, between 800-1000.
- dffname - Name of the .dff model collision file located in models server folder by default
- txdname - Name of the .txd model texture file located in models server folder by default
AddGunModel
Description: The possibility to add custom guns. Like the function of custom skins, the new guns would copy attributes from existing guns. The sound and anothers attributes are copied from existing weapons.
Parameters: (gun_base, new_gun_id, dffname[], txdname[])
- gun_base - The base gun ID to use.
- new_gun_id - The new gun ID, between 100-200.
- dffname - Name of the .dff model collision file located in models server folder by default.
- txdname - Name of the .txd model texture file located in models server folder by default.
SetPlayerStamina
Description: Change the player run stamina.
Parameters: (playerid, stamina)
- playerid - The ID of the player will be change the run stamina.
- stamina - The value to set the stamina.
SetPlayerDiveCapacity
Description: Change the player dives capacity.
Parameters: (playerid, capacity)
- playerid - The ID of the player will be change the dive capacity.
- capacity - The value to set the capacity of the player dives.
ExplodeVehicle
Description: Explodes the vehicle ID.
Parameters: (vehicleid)
- vehicleid - The ID of the vehicle will be exploded.
RemoveBuildingForPlayer
Description: Inscrease the RemoveBuildingForPlayer limit to 2000.
GetPlayerKeys
Description: Change the function to be able to identify other keyboard keys, such as F1-F12 and other letters.
AddAnimIFP
Description: The possibility to add custom animations. Use libname as CUSTOM.
Parameters: (animname[], ifp[], animifp[])
- animname - The unique name of the custom anim.
- ifp - Name of the .ifp file located in anims server folder by default.
- animifp - Name of the anim inside the .ifp.
SetPlayerInvisible
Description: The possibility to make a player invisible to anothers players. Can used to make visible again too.
Parameters: (playerid)
- playerid - The ID of the player will be make invisible or visible.