For all of those wondering to fix the effects going to blackness, the native ShakeGameplayCam() only goes to exactly 1.49 for an unseen and unknown reason. Lines 278 and 279 go up to 1.50 which, all be it VERY close to 1.49, will cause the native to go nuts and draw blackness. By switching those values to the following, I was able to get this effect to no longer fade to blackness.
SetTimecycleModifierStrength(math.min(0.1 * (tick/(counter/40)),1.49))
ShakeGameplayCam('DRUNK_SHAKE', math.min(0.1 * (tick/(counter/40)),1.49))
You can fiddle around with SetTimecycleModifierStrength() and see if it is locked an invisible number as well. I have it set to 1.49 for simply getting the effect to no longer go black.
Try it out, FOR SCIENCE!
Hopefully this is helpful to others that find themselves here with this particular issue.
4 Likes
fantastic script, works very well
acidtrip.rar (4.7 KB)
Acid Trip With Joint And Drug Effect Fixed Black Screen Bug Too Enjoy
2 Likes
how to make so that the ped is not seen by the others?
1 Like
this worked so basically for everybody who want to use it as an item follow this make sure the when you put the item in the database the name is called weed then the label can be acid or or lsd and make sure png is named weed and placed them in the inventory it took me a while too get this right but im not even a expert but it works follow his steps
i should add a main.lua file? I dont understand these steps. I followed all these steps but it dont work.
i have this same issue, i suspect its a setting in gta itself, but i have not figured it out yet. Did you?
Btw, i am having this issue as a player on a server that i do not have access to the files to.
Other players have this issue, but most do not, and they see all the effects clearly.
and no i do not have a graphics pack like NVE or MVGA.
i know this is really late but how do you change the song on this script
1 Like
everything is in vain, there will be no usable item… :((
how do you add it to a drug in qbcore
having trouble with the music. it wont start.
how do we change the duration from the music? The music stops but the effect to further