FiveM vRP Snippets
A brazilian extension for FiveM by HeyyCzer
PT-BR
Olá. Seja bem-vindo à esta extensão!
Esta extensão adiciona alguns snippets feitos especialmente para bases vRPex, para facilitar o desenvolvimento de scripts nestas.
Qualquer erro ou falta de uma função, pode ser reportado diretamente à mim, através do Discord HeyyCzer#5755.
Agradeço aos utilizadores desta extensão. Abraços!
EN-US
Hey. Welcome to this extension!
This extension adds some snippets for FiveM vRPex bases, to help and improve the experience with development.
Thanks for using!
(PT) Lista com todos os atalhos:
(EN) List with all snippets names:
defaultManifest - Default Manifest
defaultClient1 - Default vrp client script template
defaultClient2 - Default vrp client script template
defaultServer1 - Default vrp server script template
defaultServer2 - Default vrp server script template
getUserId - Get and return user identifier
getInventoryItemAmount - Get and return amount of an inventory item
getUserSource - Get and return user source
defaultThreadOptmized - Default Thread Client-Side Optimized
defaultThread - Default Thread Client-Side
defaultCommand - Default Thread Client-Side
NotifyS - Event to show notifications on client
NotifyC - Event to show notifications
getUserIdentity - Get and return user identity (array)
prompt - Send prompt to source
request - Send request to source
getUserDataTable - Return user data table
getUsers - Return users on server table
getSpawns - Return the player spawn count (0 = not spawned, 1 = first spawn, ...)
setUData - Set user data
getUData - Get user data (textual data)
getSData - Get user server data (textual data)
setSData - Set user server data
teleport - teleport the player to the specified coordinates
getPosition - get the player position
getSpeed - get the player speed
isInside - return false if in exterior, true if inside a building
notifyPicture - notify the player with picture
playScreenEffect - play a screen effect
stopScreenEffect - stop a screen effect
getNearestPlayers - get nearest players (inside the radius)
getNearestPlayer - get nearest player (inside the radius)
playAnim - play animation (new version)
stopAnim - stop animation (new version)
playSound - play sound
getGroupTitle - return group title
addUserGroup - add a group to a connected user
removeUserGroup - remove a group from a connected user
hasGroup - check if the user has a specific group
hasPermission - check if the user has a specific permission
hasPermissions - check if the user has a specific list of permissions (all of them)
getUserGroupByType - get user group by group type
getUsersByGroup - return list of connected users by group
getUsersByPermission - return list of connected users by permission
getHunger - return hunger (0-100)
getThirst - return thirst (0-100)
setHunger - set hunger
setThirst - set thirst
varyHunger - vary hunger value by variation amount (+ to add hunger, - to remove hunger)
varyThirst - same as vary hunger
varyHealth - vary health
getHealth - get player health
setHealth - set player health
isInComa - Check if player is down/death
tryGetInventoryItem - undefined
getWeapons - get player weapons data
giveWeapons - give weapons
getCustomization - get player apparence customization data
setCustomization - set player apparence
setArmour - set player armour (0-100)
getMoney - get money in wallet
setMoney - set money in wallet
tryPayment - try a payment (wallet only)
tryFullPayment - try full payment (wallet + bank to complete payment)
giveMoney - Give money to wallet
giveBankMoney - Add money to player bank
getBankMoney - Get bank money
setBankMoney - Set bank money
tryWithdraw - Try a withdraw
tryDeposit - Try a deposit