CityRP Documentation Repository

temar

Temar's help file.

Functions

Clienttemar.cluarun(ply, _, code, codeStr)Source ☍

Run lua on the client.

Parameters

  • plyPlayerThe player running the command.
  • _stringThe command being ran.
  • codetableCode arguments passed in.
  • codeStrstringThe entire command passed through.
Servertemar.it(plyOrSteamID) → booleanSource ☍

Checks if a user is Temar.

Parameters

  • plyOrSteamIDstring|PlayerThe player or SteamID to check.

Returns

  1. booleanWhether the given player/SteamID is Temar.
Servertemar.m(msg)Source ☍

Message temar.

Parameters

  • msgstringThe message to send.
Servertemar.map()Source ☍

Restart the map.

Servertemar.p() → boolean|PlayerSource ☍

Grab temar's player.

Returns

  1. boolean|PlayerTemar's player, or false if not currently connected.
Servertemar.pcall(func, _)Source ☍

pcall a function and output the error to temar if it fails.

Parameters

  • funcfunctionThe function to be called.
  • anyArguments to pass to the function.
Servertemar.pos() → Vector?Source ☍

Grab temar's eye trace hitpos.

Returns

  1. Vector?Temar's eye-trace hitpos, or nil if Temar isn't connected.
Servertemar.pt(tbl)Source ☍

Send a table to temar.

Parameters

  • tbltableThe table to send
Servertemar.sid() → stringSource ☍

Fetch temar's steamid.

Returns

  1. string's Primary SteamID.
Servertemar.sinc(ply, _, file)Source ☍

Include a file from lua/temar.

Parameters

  • plyPlayerThe player calling the command.
  • _stringThe command being ran.
  • filetableThe arguments list.
Clienttemar.t() → Entity?Source ☍

Get the local player's eye trace entity.

Returns

  1. Entity?entity if there is one.
Clienttemarpt(t) → stringSource ☍

Print a table to a string.

Parameters

  • ttableThe table to print.

Returns

  1. stringprinted table.

Tables

ClienttemarSource ☍

Fields

ServerentindexSource ☍
ClienttsSource ☍