
joedajoester
Members-
Posts
256 -
Joined
-
Last visited
Everything posted by joedajoester
-
error get localplayer a nil value
-
Hi, i have mta 1.2 and want to try out delevopment mode i cannot figure out how to. https://wiki.multitheftauto.com/wiki/SetDevelopmentMode
-
Hi, for a healing gun its only avainable in mta sa 1.2 so i got mta 1.2 and i tried making the healing gun and nothing. local damage = setWeaponProperty(31, "pro", "damage", -100) I get no error but the gun, m4 still damages and not heals https://wiki.multitheftauto.com/wiki/SetWeaponProperty
-
never mind is it possible to make a timer to re spawn the ped after 1 minute?
-
I restarted it all and nothing. i get false boolean
-
Its all the same. i copied and pasted it even.
-
Exports: call to non-running server resource (nil) [string "?"] the resource is running thou
-
OMG this still doesnt work.. /run exports[invincibleped]:setElementInvulnerable(ped1inside, true)
-
run setElementInvulnerable ( ped1inside, true) this doesnt work ingame
-
run setElementInvulnerable ( ped1inside, state) run setElementInvulnerable ( ped1inside, alive) not sure what state is
-
I did and i tried running those things and nothing happened
-
How do i use your resource??
-
Hi, i need a ped to be invincible so no one can kill it. The freeze function sucks severely. function getPlayerFromPartOfName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function Jail (player, command, name) if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local thePlayer = getPlayerFromPartOfName(name) if not thePlayer then return end if getElementData( thePlayer, "isJailed") then outputChatBox("This player is already in jail.",player,255,0,0) return end setElementData(thePlayer, "jailSkin", getElementModel ( thePlayer )) setElementModel ( thePlayer, 22 ) setElementPosition ( thePlayer, 52, 2483, 21 ) takeAllWeapons ( getRootElement() ) setElementData ( thePlayer, "isJailed", true ) outputChatBox (name.." has been jailed", getRootElement(), 255, 0, 0, true ) else outputChatBox ("You cannot use this command!", player, 255, 0, 0, true ) end end addCommandHandler("jail",Jail) function Unjail (player, command, name) if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local thePlayer = getPlayerFromPartOfName(name) if not thePlayer then return end if not getElementData( thePlayer, "isJailed") then outputChatBox("This player is not in jail.",player,255,0,0) return end setElementPosition ( thePlayer, 72, 2484, 16.3 ) setElementModel ( thePlayer, tonumber(getElementData(thePlayer,"jailSkin"))) setElementData ( thePlayer, "isJailed", false ) outputChatBox (name.." has been unjailed. Be good now, "..name, getRootElement(), 0, 255, 0, true ) else outputChatBox ("You cannot unjail yourself!", player, 255, 0, 0, true ) end end addCommandHandler("unjail",Unjail) ped1inside = createPed ( 71, 69, 2503, 17) setElementFrozen (ped1inside, false ) setPedRotation (ped1inside, 180)
-
Umm ok but how would i fix the glitch? I used set element rotation and it doesnt have a transition, look. col = createColTube ( 2919.8000488281, -790.9, 10.300000190735, 15, 13) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () lift = createObject ( 968, 2919.8000488281, -790.9, 11.300000190735, 0, -90, 88) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open (pla) if getElementType ( pla ) == "player" then --here you can alter the group from Admin to whatever you require in your server but remember the rest must be the same i.e change everything where it says Admin to your desired group and add the users to that group. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then setElementRotation(lift, 0, 0, 88) -- here is where you enter the coordinatess of the new location of the object, 2500 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) addEventHandler ( "Open", root, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then setElementRotation(lift, 0, -90, 88) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. else return 0 end end end end addEventHandler ( "onColShapeLeave", col, Close ) addEventHandler ( "Close", root, Close)
-
soo this? col = createColTube ( 2919.8000488281, -790.9, 10.300000190735, 15, 13) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () lift = createObject ( 968, 2919.8000488281, -790.9, 11.300000190735, 0, -90, 88) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open (pla) if getElementType ( pla ) == "player" then --here you can alter the group from Admin to whatever you require in your server but remember the rest must be the same i.e change everything where it says Admin to your desired group and add the users to that group. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then setElementRotation(lift, 0, 0, 0) -- here is where you enter the coordinatess of the new location of the object, 2500 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) addEventHandler ( "Open", root, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 1500, 2919.8000488281, -790.8, 11.300000190735, 0, -90, 0, "InBack") -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. else return 0 end end end end addEventHandler ( "onColShapeLeave", col, Close ) addEventHandler ( "Close", root, Close)
-
Hi, this script i need a gate to rotate up and if someone goes in the gate and leaves the collision zone before the gate fully opens the gate glitches and closes above where it should close. In the wiki its adding rotation not setting it. https://wiki.multitheftauto.com/wiki/MoveObject see? its retarded and that's the only gate in my server that uses rotation. col = createColTube ( 2919.8000488281, -790.9, 10.300000190735, 20, 20) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () lift = createObject ( 968, 2919.8000488281, -790.9, 11.300000190735, 0, -90, 88) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open (pla) if getElementType ( pla ) == "player" then --here you can alter the group from Admin to whatever you require in your server but remember the rest must be the same i.e change everything where it says Admin to your desired group and add the users to that group. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, 2919.8000488281, -790.9, 11.300000190735, 0, 90, 0, "OutBack") -- here is where you enter the coordinatess of the new location of the object, 2500 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) addEventHandler ( "Open", root, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 3500, 2919.8000488281, -790.8, 11.300000190735, 0, -90, 0, "InBack") -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. else return 0 end end end end addEventHandler ( "onColShapeLeave", col, Close ) addEventHandler ( "Close", root, Close)
-
Hi guys, i need a script so that no one can warp to me when im in a admin base. If they are admins they can warp to someone in admin base. I know u need setElementData and edit freeroam. Can someone help?
-
Hi, this script i need a gate to rotate up and if someone goes in the gate and leaves the collision zone before the gate fully opens the gate glitches and closes above where it should close. In the wiki its adding rotation not setting it. https://wiki.multitheftauto.com/wiki/MoveObject see? its retarded and that's the only gate in my server that uses rotation. col = createColTube ( 2919.8000488281, -790.9, 10.300000190735, 20, 20) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () lift = createObject ( 968, 2919.8000488281, -790.9, 11.300000190735, 0, -90, 88) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open (pla) if getElementType ( pla ) == "player" then --here you can alter the group from Admin to whatever you require in your server but remember the rest must be the same i.e change everything where it says Admin to your desired group and add the users to that group. if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, 2919.8000488281, -790.9, 11.300000190735, 0, 90, 0, "OutBack") -- here is where you enter the coordinatess of the new location of the object, 2500 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) addEventHandler ( "Open", root, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 3500, 2919.8000488281, -790.8, 11.300000190735, 0, -90, 0, "InBack") -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. else return 0 end end end end addEventHandler ( "onColShapeLeave", col, Close ) addEventHandler ( "Close", root, Close)
-
I have it, but do not know how to use it can u help i tried looking at the script
-
How about this? srun setPedStat(getRandomPlayer(), 70, 500) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "accuracy",2000) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "damage",1000) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "flags",0x000020) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "flags",0x000800) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "anim_group",13) crun setPedWeaponInfo(getLocalPlayer(), "silenced_pistol", "flags",0x000002)
-
Thank you so much ill test it tomorrow i gotta get to bed thanks again
-
What would the script be? I dont know how to do this sorry can you help?
-
Hi, is it possible for a script to make a tour on a players first join? A tour around the map that has text saying whatever and yeah thats pretty much it I dont know how to make the camera part but a slow moving or still camera i need
-
Hi all, i recently got mta 1.2 and it has new features like healing gun, look at this video its cool right? I need to know how to do this lol is this only for mta 1.2 not 1.1 ? please help me someone
-
Thank you all, Wafamde was exactly what i wanted but if i create object at coordinates, 0, 0, 0 and the offset would be the coordinates of the object