PlayAkoya Posted October 31, 2015 Posted October 31, 2015 Hi, i use the Resource https://community.multitheftauto.com/in ... ls&id=2540 My Script: function onGivePlayerPizzaBox (player) if (getPlayerName(player) == "[sR]PlayAkoya") then local pname = getPlayerName(player) burger = createObject(2880, 0, 0, 0) --1582 setElementDimension(burger, 0) attachElementToBone(burger, player, 12, 0, 0, 0, 0, -90, 0) outputChatBox("Debug: PIZZA FIXSIERT!", root, 200, 200, 0) else outputChatBox("Du bist nicht befugt den Test Command zu nutzen!", player, 200, 0, 0) end end addCommandHandler("pizza", onGivePlayerPizzaBox, false, false) The objects are not firmed on players?! Can anyone help, please?
PlayAkoya Posted November 1, 2015 Author Posted November 1, 2015 #PUSH! Can anyone help me with my problem?
BluntZ Posted November 1, 2015 Posted November 1, 2015 Any error in /debugscript 3 ? Skype : Mohd.hamza35 facebook : https://www.facebook.com/MrBluntZ Still looking for any server to work on!
Walid Posted November 1, 2015 Posted November 1, 2015 #PUSH!Can anyone help me with my problem? You need to call bone_attach resource like this: function onGivePlayerPizzaBox (player) if (not isElement(player)) then return end if isPedInVehicle (player) then return end local pname = getPlayerName(player) if not (pname == "[sR]PlayAkoya") then outputChatBox("Du bist nicht befugt den Test Command zu nutzen!", player, 200, 0, 0) return end burger = createObject(2880, 0, 0, 0) setElementDimension(burger, getElementDimension (player)) export.bone_attach:attachElementToBone(burger, player, 12, 0, 0, 0, 0, -90, 0) outputChatBox("Debug: PIZZA FIXSIERT!",player, 200, 200, 0) end addCommandHandler("pizza", onGivePlayerPizzaBox) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now