[Release] [Standalone] Slow motion, heat vision, night vision, super jump, invisible

Get it on GitHub
powermenu

planted

tending

Resource must stay named jjsslowmohud

No dependencies unless you want to grow Weed then you need ESX with inventory

Commands:
/jjpowers
/jjsettings
/jjgod true/false
/jjweed
/jjplant

Config = {
EnableWeed = true,
UseESX = true, – EnableWeed requires this
UseESXlicense = true,
UseshowNotification = true, – RottonV only for Notifications if perferred
slowmopower = true, – can be triggered by player
slowmoinvis = true, – is invisible when slow motion triggered by player
slowmospeed = 0.5, – half speed = 0.5
superjumppower = true, – can user superjump
nightvisionpower = true, – can be triggered by player
heatvisionpower = true, – can be triggered by player
slowmopowertime = 8, – how long it lasts
nightvisiontime = 8, – how long it lasts
heatvisiontime = 8, – how long it lasts
flashspeed = 1.5, – how fast player runs when in slow motion
AutoShowList = false, --removing in next release
powercooldown = 3, – how long between power uses

}

– if enableweed = true this is enabled below
Config.debug=false
Config.Plants = {}
Config.PlantsObj={}
Config.StartingPH= 6.2
Config.StartingTDS = 100 – if too high will cause nuet lockout ph will be 4 and tds 1666
Config.StartingTemp = 20
Config.StartingAir = 20
Config.StartingLight = 20
Config.StartingHumidity = 70
Config.TDSIncrease= {min = 80, max = 180}

Config.StartingThirst = 85.0
Config.StartingHunger = 85.0

Config.HungerIncrease = {min = 8, max = 18}
Config.ThirstIncrease = {min = 8, max = 18}

Config.Degrade = {min = 1, max = 3}
Config.QualityDegrade = {min = 1, max = 4}
Config.GrowthIncrease = 0.25
Config.GrowthCycletime = 5000

External calls for other plugins:

Make player use powers:
TriggerClientEvent(‘jjsslowmo:heatvisionPlayer’, hvplayerId)
TriggerClientEvent(‘jjsslowmo:nightvisionPlayer’, nvplayerId)
TriggerClientEvent(‘jjsslowmo:superjumpPlayer’, jumpingplayerId, true/false)

Force time to slow time to slow down:
TriggerClientEvent(‘jjsslowmo:updateAllowedHost’, -1, sendingplayerId)
TriggerClientEvent(‘jjsslowmo:slowmoPlayer’, -1, ahost, pspeed, pinvis, stime, sspeed)
–[[ ahost is the allowed host to slow player pspeed is true/false
if player can run fast while slowed
pinivis is true/false if player is invisible when time is slowed
stime is the time in seconds the slow down lasts
sspeed is how slow does time slow down to (1.0 is normal speed)
]]

TriggerServerEvent(‘jjsslowmo:setSuperJump’, playerId, true/false)

Hud Updates ( have to be done per tick ):
TriggerServerEvent(“jjsslowmohud:addme”, true/false , PlayerId(), "Text1, “Text2” )

Example for Notify
TriggerEvent(“jjsslowmohud:notify” ,“TESTNG”,3000)

Example for Big Hud
TriggerEvent(“jjsslowmohud:showmehud”)
TriggerServerEvent(“jjsslowmohud:addme”, false, PlayerId(), “Test1”, “test2”)
TriggerEvent(“jjsslowmohud:hidemehud”)

–[[
------ IF YOU CHANGE THESE BELOW THEN YOU MAY NEED TO CLEAN UP YOUR
------ %appdata%\CitizenFX\fivem.cfg file
------ or fix the keybind in the ESCAPE/PAUSE menu
]]
Config.Keys = {
RequireAiming = false, --removing in next release
SettingsKey = ‘k’, – open hud settings /jjsettings
NightVision = ‘i’, – trigger power /jjpower night
HeatVision = ‘o’, – trigger power /jjpower heat
SlowMo = ‘u’, – trigger power /jjpower slowmo
TendPlants = ‘j’, }

Menu: —created LiamInChains#3776—
orp-weed: —created Howdy#8276

Both: —heavilied modified by mindping—

4 Likes

Is this still working because I just tried it and it doesn’t work

Sorry. if you want to try still. Its posted in the reply below

As well as added a weed system

Posted to github and added some ph, tds, light, air humidity calculations for weed realism