Originally Posted by
Porco Aranha
I would like to convert this code to .lua?
I don't code LUA normally. Pls someone correct me if I am wrong but this should work
Code:
ENTPOS = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), 0)
local prop_bag = GAMEPLAY.GET_HASH_KEY("prop_money_bag_01")
STREAMING.REQUEST_MODEL(prop_bag)
if STREAMING.HAS_MODEL_LOADED(prop_bag) then
OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_CASE"), ENTPOS.x, ENTPOS.y, ENTPOS.z + 1, 0, 40000, prop_bag, 0, 1)
STREAMING.SET_MODEL_AS_NO_LONGER_NEEDED(prop_bag)
end