Hi guys, im asking if i can get name of resource that called a function from another resource.
--- function from resource1
function Func()
outputChatBox("That function called by: ".. resourceName) -- print 'That function called by: resource2'
end
--- resource2
exports["resource1"]:Func()
غير السطر 20 ب
if getPedOccupiedVehicle(plr) and pf == getElementModel(getPedOccupiedVehicle(plr))..""..val.num and getElementModel(getPedOccupiedVehicle(plr)) == val.car and getAccountName(getPlayerAccount(plr)) == val.owner then