OXYGEN
  • Home
  • Wiki
  • Contact Us
OXYGEN
  • Home
  • Wiki
  • Contact Us

Wiki/guid

Installation

how to download and setup oxygen framework

  • Download OXYGEN
  • Open Citizenivserver.exe to start your server


Settings

You can set your server settings in Citizenmpserver.yml

You can set your oxygen script settings in resources/[system]/oxygen/oxy_settings.lua


oxy_settings

You can Adjust your script's settings inside oxy_settings.lua


Notice

Things to notice

  • Don't change the file name oxygen
  • Don't change the file location from [system] to anywhere
  • Don't upload our server resource to anywhere without permission(if done, don't forget to add credits)

Functions

Functions

AddAccountMoney

AddAccountMoney(amount)

RemoveAccountMoney

RemoveAccountMoney(amount)

AddBankMoney

AAddBankMoney(amount)

RemoveBankMoney

RemoveBankMoney(amount)

GetAccountMoney

GetAccountMoney()

GetBankMoney

GetBankMoney()

ActivateMenu

ActivateMenu("title", items)

IsCursorInArea

 IsCursorInArea (x, y, width, height)

Notify

Notify("Press_E_To_Do_Something", 5000)

Print

Print("text")

SetSkin

SetSkin(model hash)

SpawnCar

SpawnCar(model, x, y, z, heading, teleport true/false)

SpawnObject

SpawnObject(model, x, y, z, heading)

PlayAnim

PlayAnim(animation, animationset)

IsCharNearCoords

 

IsCharNearCoords(playerid, x, y, z, radius)

SetJob

SetJob(jobid)

SetRank

SetRank(rank)

GetPlayerIdByName

 

GetPlayerIdByName(name)

Revive

Revive()

DisplayText

DisplayText(text, x, y)

DisplayImage

DisplayImage(txd, png, width, hieght, x, y)

AddCam

AddCam(x, y, z, lookz, looky, lookz)

CreateBlipAtCoord

CreateBlipAtCoord(x, y, z, text, sprite, color, range, scale)

DrawCheckpointWithDist

DrawCheckpointWithDist(x, y, z, radius, r, g, b, a)

CreateCheckpoint

 

CreateCheckpoint (x, y, z, radius, r, g, b, a, message)

DeleteCheckpoint

 

DeleteCheckpoint(id)

DoesCheckpointExist

 DoesCheckpointExist(id)

IsPlayerAtCheckpoint

 IsPlayerAtCheckpoint(id)

round

 round(num, idp)

GetRank

GetRank(id)

SendEveryoneMessage

 SendEveryoneMessage(m1, m2)

SendPlayerMessage

SendPlayerMessage(name, m1 , m2)

SaveData

SaveData()

DrawRectLeftTopCenter

DrawRectLeftTopCenter(x, y, width, height, r, g, b, a)

DrawCurvedWindowLeftTopCenter

 DrawCurvedWindowLeftTopCenter(x, y, width, height, a)

end

Copyright © 2022 OXYGEN - All Rights Reserved.

  • Wiki

Welcome to Oxygen

Get oxy framework for free

learnMore

This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

Accept