FaZe Development
Discord
  • 👋WELCOME
    • 👋Welcome
  • 💸RESOURCES
    • 💼fd-jobselector
      • 🔄Installation
      • ⚙️Configuration
      • 🛠️Functions
        • Client
          • Notify
        • Server
          • GetPlayer
    • 🚘fd-carrental
      • 🔄Installation
      • ⚙️Configuration
      • 🛠️Functions
        • Client
          • Notify
          • GiveVehicleKeys
          • RemoveVehicleKeys
          • SetVehicleFuel
        • Server
          • GetPlayer
          • RemoveMoney
    • 🎁fd-steamreward
      • 🔄Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  1. RESOURCES
  2. fd-jobselector
  3. Functions
  4. Server

GetPlayer

Change your GetPlayer Event for your Framework here.

function FD.GetPlayer(source)
    local Player = false
    while Framework == nil do
        Citizen.Wait(0)
    end
    if Config.Framework == 'esx' or Config.Framework == 'oldesx' then
        Player = Framework.GetPlayerFromId(source)
    else
        Player = Framework.Functions.GetPlayer(source)
    end
    return Player
end
PreviousServerNextfd-carrental

Last updated 1 year ago

💸
💼
🛠️