Jump to content

LiOneLMeSsIShoT

Members
  • Posts

    609
  • Joined

  • Last visited

Everything posted by LiOneLMeSsIShoT

  1. Read the last line of my post, try changing the returns with else they might be bugging as the second return could be trying to return to the first one. function onPickupHit ( thePlayer ) if ( source ~= bag ) then return end if ( isPedInVehicle ( thePlayer ) ) then return end Please give me an example of what you want to say.... it's gonna be like if ( source ~= bag ) then return else if ( isPedInVehicle ( thePlayer ) ) then return or what? Whatever! the script now ... local pbags = { {2293.154296875, 561.470703125, 7.78125}, } local marker = createMarker (2291.1999511719,537,0.80000001192093,"cylinder", 1.5, 255, 0, 0) function createBags ( thePlayer ) local x, y, z = unpack ( pbags [ math.random ( #pbags ) ] ) local bag = createPickup ( x, y, z, 3, 1550 ) end addEventHandler ("onResourceStart", getRootElement(), createBags) function onPickupHit ( thePlayer ) if ( source ~= bag ) then return else if ( isPedInVehicle ( thePlayer ) ) then return else destroyElement ( bag ) setElementData ( thePlayer, "bag", true ) setElementCollisionsEnabled ( bag, false ) attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) end end end addEventHandler ("onPickupHit", getRootElement(), onPickupHit) and Still not shows the Bag in the player back..
  2. Read the last line of my post, try changing the returns with else they might be bugging as the second return could be trying to return to the first one. function onPickupHit ( thePlayer ) if ( source ~= bag ) then return end if ( isPedInVehicle ( thePlayer ) ) then return end Please give me an example of what you want to say.... it's gonna be like if ( source ~= bag ) then return else if ( isPedInVehicle ( thePlayer ) ) then return or what?
  3. And whats the marker creation then for? i probably misunderstood, if you want to get it on pickup hit.. function onPickupHit ( thePlayer ) if ( source ~= bag ) then return end if ( isPedInVehicle ( thePlayer ) ) then return end setElementData ( thePlayer, "bag", true ) setElementCollisionsEnabled ( bag, false ) attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) end addEventHandler ("onPickupHit", getRootElement(), onPickupHit) i'm not sure, but try using elses instead of returns. What??? Man..Can you igrone the marker? just igrone it!! i didn't script full script yet..but the Element bag don't be attached in the player Back..Can you tell me why? or try to give me example..or else.. But Please Igrone the marker
  4. What Marker ? i didn't do function for marker yet..It's onPickupHit!!!..And i made attachelements but not be showed in the player back..Check the script please........... attachElements ( bag, thePlayer, 0, -0.3, 0.3 )
  5. Whatever..How to show the metal in the player hand? like muscle? also how to make him do the animation if he click F when he be near Training Machine?..Thanks
  6. When i pickup this bag..it's don't be attached in the player back...Help please.. I made Attach Element local pbags = { {2293.154296875, 561.470703125, 7.78125}, } local marker = createMarker (2291.1999511719,537,0.80000001192093,"cylinder", 1.5, 255, 0, 0) function createBags ( thePlayer ) local x, y, z = unpack ( pbags [ math.random ( #pbags ) ] ) local bag = createPickup ( x, y, z, 3, 1550 ) end addEventHandler ("onResourceStart", getRootElement(), createBags) function onPickupHit ( thePlayer ) if ( source ~= bag ) then return end if ( isPedInVehicle ( thePlayer ) ) then return end setElementData ( thePlayer, "bag", true ) setElementCollisionsEnabled ( bag, false ) attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) end addEventHandler ("onPickupHit", getRootElement(), onPickupHit) and also how to make in the table about 10 places and make them all spawn? Not only one. Thanks
  7. also the pickup when i pick it up.. not be attached in the player back also i didn't understand anything in that loop ! please give me an example with it? or something to make me understand
  8. Searched a lot ! Didn't find one..i need some functions to make it..and it's gonna be hard?..i'm only want to set animation and up the stats..no need to add new big muscle skins or else..Thanks
  9. How to use this bone_attach..downloaded..but i don't feel like using it..it's good? anyway can you tell me how to use it? or tell me how to check the player if he bends down or running with space
  10. Give me an example please .. also the pickup when i pick it up.. not be attached in the player back ..help please
  11. but i want all pickups spawn around the city with the x, y, z..not only 1 or 2
  12. I made this script to show marker and pickups...only for test..but i got Error: You may help me guys ERROR: :13: Bad argument @ 'createPickup' local pbags = { {2293.154296875, 561.470703125, 7.78125} {2422.3,-2261.6,16}, {1758.9,-2767.9,1.7}, {2493.3,-951.8,82.25}, {815.7,-1108.2,25.8}, {390.9,-2054.3,13.8}, {-719.05,-1938.8,8.35}, {-625.7,-2249.5,23.05}, {-1812.3,-168.5,18.2}, {-2659.5,1528.05,54.79}, {-1733.76,194.75,3.6}, {-2535.5,40.15,8.5}, {-1804.85,558.45,35.15}, {-752.6,-131.6,65.8}, } local marker = createMarker (2291.1999511719,537,0.80000001192093,"cylinder", 1.5, 255, 0, 0) function createBags ( thePlayer ) local x, y, z = pbags local bag = createPickup ( x, y, z, 3, 1550 ) end addEventHandler ("onResourceStart", getRootElement(), createBags) function onPickupHit ( thePlayer ) if ( source ~= bag ) then return end if ( isPedInVehicle ( thePlayer ) ) then return end setElementCollisionsEnabled ( bag, false ) attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) setElementData ( thePlayer, "bag", true ) destroyElement ( bag ) end addEventHandler ("onPickupHit", getRootElement(), onPickupHit)
  13. How to check if the player's bending down with ( c ) key...to change the position of the bag..and how to check if the player's running..to make the bag in his back more..Thanks
  14. May you give me an Example for this..? Please Thank you a lot
  15. I'm going to make a Pickup bag..and need this bag shows in the player back...not only destroy element...i want the bag shows in the player back...so what function to do that? ( bag model: 1550 ) Thanks.
  16. It is Possible to do like...if the player wrote "hey" in the chat...then playSound for it if possible..what functions i have to use? to get me what the player wrote in the chat?
  17. Read the script..It's added already local men = { [ 0 ] = true, [ 7 ] = true, [ 14 ] = true, [ 15 ] = true, [ 16 ] = true, [ 17 ] = true, [ 18 ] = true, [ 19 ] = true, [ 20 ] = true, [ 21 ] = true, [ 22 ] = true, [ 23 ] = true, [ 24 ] = true, [ 25 ] = true, [ 26 ] = true, [ 27 ] = true, [ 28 ] = true, [ 29 ] = true, [ 30 ] = true, [ 32 ] = true, [ 33 ] = true, [ 34 ] = true, [ 35 ] = true, [ 36 ] = true, [ 37 ] = true, [ 43 ] = true, [ 44 ] = true, [ 45 ] = true, [ 46 ] = true, [ 47 ] = true, [ 48 ] = true, [ 49 ] = true, [ 50 ] = true, [ 51 ] = true, [ 52 ] = true, [ 57 ] = true, [ 58 ] = true, [ 59 ] = true, [ 60 ] = true, [ 61 ] = true, [ 62 ] = true, [ 66 ] = true, [ 67 ] = true, [ 68 ] = true, [ 70 ] = true, [ 71 ] = true, [ 72 ] = true, [ 73 ] = true, [ 78 ] = true, [ 79 ] = true, [ 80 ] = true, [ 81 ] = true, [ 82 ] = true, [ 83 ] = true, [ 84 ] = true, [ 94 ] = true, [ 95 ] = true, [ 96 ] = true, [ 97 ] = true, [ 98 ] = true, [ 99 ] = true, [ 100 ] = true, [ 101 ] = true, [ 111 ] = true, [ 112 ] = true, [ 113 ] = true, [ 117 ] = true, [ 118 ] = true, [ 120 ] = true, [ 121 ] = true, [ 122 ] = true, [ 123 ] = true, [ 124 ] = true, [ 125 ] = true, [ 126 ] = true, [ 127 ] = true, [ 128 ] = true, [ 132 ] = true, [ 133 ] = true, [ 134 ] = true, [ 135 ] = true, [ 136 ] = true, [ 137 ] = true, [ 142 ] = true, [ 143 ] = true, [ 144 ] = true, [ 146 ] = true, [ 147 ] = true, [ 153 ] = true, [ 154 ] = true, [ 155 ] = true, [ 156 ] = true, [ 158 ] = true, [ 159 ] = true, [ 160 ] = true, [ 161 ] = true, [ 162 ] = true, [ 163 ] = true, [ 164 ] = true, [ 165 ] = true, [ 166 ] = true, [ 167 ] = true, [ 168 ] = true, [ 170 ] = true, [ 171 ] = true, [ 176 ] = true, [ 177 ] = true, [ 179 ] = true, [ 180 ] = true, [ 181 ] = true, [ 182 ] = true, [ 183 ] = true, [ 184 ] = true, [ 185 ] = true, [ 186 ] = true, [ 187 ] = true, [ 188 ] = true, [ 189 ] = true, [ 200 ] = true, [ 202 ] = true, [ 203 ] = true, [ 204 ] = true, [ 206 ] = true, [ 209 ] = true, [ 210 ] = true, [ 212 ] = true, [ 213 ] = true, [ 217 ] = true, [ 220 ] = true, [ 221 ] = true, [ 222 ] = true, [ 223 ] = true, [ 224 ] = true, [ 225 ] = true, [ 226 ] = true, [ 227 ] = true, [ 228 ] = true, [ 229 ] = true, [ 230 ] = true, [ 234 ] = true, [ 235 ] = true, [ 236 ] = true, [ 240 ] = true, [ 241 ] = true, [ 242 ] = true, [ 247 ] = true, [ 248 ] = true, [ 249 ] = true, [ 250 ] = true, [ 252 ] = true, [ 254 ] = true, [ 255 ] = true, [ 258 ] = true, [ 259 ] = true, [ 260 ] = true, [ 261 ] = true, [ 262 ] = true, [ 264 ] = true, [ 274 ] = true, [ 275 ] = true, [ 276 ] = true, [ 277 ] = true, [ 278 ] = true, [ 279 ] = true, [ 280 ] = true, [ 281 ] = true, [ 282 ] = true, [ 283 ] = true, [ 284 ] = true, [ 285 ] = true, [ 286 ] = true, [ 287 ] = true, [ 288 ] = true } local girls = { [ 9 ] = true, [ 10 ] = true, [ 11 ] = true, [ 12 ] = true, [ 13 ] = true, [ 31 ] = true, [ 38 ] = true, [ 39 ] = true, [ 40 ] = true, [ 41 ] = true, [ 53 ] = true, [ 54 ] = true, [ 55 ] = true, [ 56 ] = true, [ 63 ] = true, [ 64 ] = true, [ 69 ] = true, [ 75 ] = true, [ 76 ] = true, [ 77 ] = true, [ 85 ] = true, [ 87 ] = true, [ 88 ] = true, [ 89 ] = true, [ 90 ] = true, [ 91 ] = true, [ 92 ] = true, [ 93 ] = true, [ 129 ] = true, [ 130 ] = true, [ 131 ] = true, [ 138 ] = true, [ 139 ] = true, [ 140 ] = true, [ 141 ] = true, [ 145 ] = true, [ 148 ] = true, [ 150 ] = true, [ 151 ] = true, [ 152 ] = true, [ 157 ] = true, [ 169 ] = true, [ 178 ] = true, [ 190 ] = true, [ 191 ] = true, [ 192 ] = true, [ 193 ] = true, [ 194 ] = true, [ 195 ] = true, [ 196 ] = true, [ 197 ] = true, [ 198 ] = true, [ 199 ] = true, [ 201 ] = true, [ 205 ] = true, [ 207 ] = true, [ 211 ] = true, [ 214 ] = true, [ 215 ] = true, [ 216 ] = true, [ 218 ] = true, [ 219 ] = true, [ 224 ] = true, [ 225 ] = true, [ 226 ] = true, [ 231 ] = true, [ 232 ] = true, [ 233 ] = true, [ 237 ] = true, [ 238 ] = true, [ 243 ] = true, [ 244 ] = true, [ 245 ] = true, [ 246 ] = true,
  18. how the timer will work in this event? setTimer (onElementModelChange, 1000, 1)??!!?
  19. ok i will try it Still the same Nothing..updated function checkSkin ( thePlayer, skin ) if ( men [ skin ] ) then setPedWalkingStyle ( thePlayer, 118 ) elseif ( girls [ skin ] ) then setPedWalkingStyle ( thePlayer, 129 ) elseif ( gangsters [ skin ] ) then setPedWalkingStyle ( thePlayer, 121 ) setTimer(checkSkin, 1000, 1, thePlayer) end end Timer's here
  20. Answer Please ..or someone help me.. Thanks
×
×
  • Create New...