I need help, im trying to make a x-pill item and make it so when the consume it it makes them temporarily move faster. (i use ox_inventory btw) below i have the code i tried to make but it dosent work for me.
Try if it’s working now. Citizen.CreateThread function is not necessary in this case, as the effect function will be called automatically by ox_inventory.
If you need this kind of support I recommend you move to the section I mentioned below:
That shouldn’t matter, there’s no framework-dependent stuff here as far as I see. Make sure you don’t have some other resource overriding the relevant natives being used, BTW.