Module temar

Temar's help file.

Module Overview

Client Functions

temarpt(t) Print a table to a string.
t() Get the local player's eye trace entity.
cluarun(ply, _, code, codeStr) Run lua on the client.

Server Functions

p() Grab temar's user.
it(plyOrSteamID) Checks if a user Is Temar.
t() Grab temar's eye trace entity.
pos() Grab temar's eye trace hitpos.
m(msg) Message temar.
sid() Fetch temar's steamid.
map() Restart the map.
pt(tbl) Send a table to temar.
cityrp.limitspeed(veh, maxspeed) Limit a vehicle's speed.
sinc(ply, _, file) Include a file from lua/temar.
pcall(func, ...) pcall a function and output the error to temar if it fails.

Client Functions

temarpt(t)
Print a table to a string.

Parameters:

  • t tab The table to print.

Returns:

    string The printed table.
t()
Get the local player's eye trace entity.

Returns:

    optional Entity The entity if there is one.
cluarun(ply, _, code, codeStr)
Run lua on the client.

Parameters:

  • ply Player The player running the command.
  • _ string The command being ran.
  • code tab Code arguments passed in.
  • codeStr string The entire command passed through.

Server Functions

p()
Grab temar's user.

Returns:

    Player or boolean Player or false if not found.
it(plyOrSteamID)
Checks if a user Is Temar.

Parameters:

  • plyOrSteamID player or string player or steamid to check.

Returns:

    bool
t()
Grab temar's eye trace entity.

Returns:

    optional Entity The entity hit.
pos()
Grab temar's eye trace hitpos.

Returns:

    optional Vector Temar's eye-trace hitpos.
m(msg)
Message temar.

Parameters:

  • msg string The message to send.
sid()
Fetch temar's steamid.

Returns:

    string Temar's Primary SteamID.
map()
Restart the map.
pt(tbl)
Send a table to temar.

Parameters:

  • tbl tab The table to send
cityrp.limitspeed(veh, maxspeed)
Limit a vehicle's speed.

Parameters:

  • veh Entity The vehicle entity.
  • maxspeed number The new max speed of the vehicle.
sinc(ply, _, file)
Include a file from lua/temar.

Parameters:

  • ply Player The player calling the command.
  • _ string The command being ran.
  • file tab The arguments list.
pcall(func, ...)
pcall a function and output the error to temar if it fails.

Parameters:

  • func func The function to be called.
  • ... VarArg Arguments to pass to the function.