Scripting/Client

Client scripts are the .nut files marked client="1" in Script.xml. Each player's game downloads and runs them in its own sandbox when they join. They draw the interface, react to the keyboard and mouse, and talk to your server scripts with CallServerFunc / CallClientFunc.

Client events

TipFinding model ids of a converted map (San Andreas, Vice City, Upstate ...): type /debuglog on and shoot things - every hit shows [objshot] building 1205 "ind_customroad003" pos ... rot ... in the chat, and on PC the same lines are added to lu_objshot.log next to gta3.exe. /debuglog off stops it. (The PS3 has no /debuglog: use the event.)

Messages and chat

Looking up entities

NoteThe client only knows about players, vehicles, objects and pickups the server has streamed to it. To list the connected players loop FindPlayer(0 .. MAX_PLAYERS-1) and skip nulls.

Input

Screen, world and camera

Sound

Utility

Categories: Client scripting