Jump to content

Lloyd Logan

Members
  • Content Count

    642
  • Joined

  • Last visited

Everything posted by Lloyd Logan

  1. Oh right thanks! I have one more question, say I had the createVehicle, how would I setElementData to a number? Something like; veh = createVehicle(blahblah) setElementData(veh, blah, blah) --This would be a number to represent the price!
  2. Thank you! What does the link do?
  3. Or, how would (if I were to say, getElementPosition), select a certain value from a table? Like [1]
  4. I understand what he is getting at, but I don't know how to apply it.
  5. Hi, I've set the parent, so why doesn't this work? If you look where i put ----THIS HERE!! (Line 48) It's supposed to output the vehicle name, but it doesn't! -----CREATE THE VEHICLES----- vehcreates = { [1] = createVehicle(589, 561.3701171875, -1289.9091796875, 17.248237609863), [2] = createVehicle(518, 556.1318359375, -1290.0322265625, 17.248237609863 ), [3] = createVehicle(402, 550.7373046875, -1289.525390625, 17.248237609863 ), [4] = createVehicle(603, 545.7001953125, -1289.4248046875, 17.248237609863), [5] = createVehicle(480, 540.79296875, -1289.3271484375, 1
  6. Actually thanks for that! Because of myonlake post I never saw yours! This also helped, thanks!
  7. That's what I was kinda looking for! So if I were to enter a marker, to get the name of a vehicle, would I set the parent vehicle to a marker other vice versa?
  8. Well, because I don't fully understand your code, I cant say for sure, but from looking, i think it's right!
  9. Is there anyway to link a marker with a vehicle? I mean, if i were to enter a marker, it would tell me 'something' of a certain vehicle? Example : Player steps into the marker, and gets details of a certain car?
  10. I think you're getting me wrong, what I am trying to do is; -----CREATE THE VEHICLES----- vehcreates = { [1] = createVehicle(589, 561.3701171875, -1289.9091796875, 17.248237609863), [2] = createVehicle(518, 556.1318359375, -1290.0322265625, 17.248237609863 ), [3] = createVehicle(402, 550.7373046875, -1289.525390625, 17.248237609863 ), [4] = createVehicle(603, 545.7001953125, -1289.4248046875, 17.248237609863), [5] = createVehicle(480, 540.79296875, -1289.3271484375, 17.2421875 ), [6] = createVehicle(415, 535.57421875, -1289.22265625, 17.2421875), [7] = cre
  11. It was originally under the table, but didn't work like that!
  12. Yeah as the title says, this code doesn't do anything club = setElementData(vehcreates[1],"club",true) vehcreates = { [1] = createVehicle(589, 561.3701171875, -1289.9091796875, 17.248237609863), [2] = createVehicle(518, 556.1318359375, -1290.0322265625, 17.248237609863 ), [3] = createVehicle(402, 550.7373046875, -1289.525390625, 17.248237609863 ), [4] = createVehicle(603, 545.7001953125, -1289.4248046875, 17.248237609863), [5] = createVehicle(480, 540.79296875, -1289.3271484375, 17.2421875 ), [6] = createVehicle(415, 535.57421875, -1289.22265625, 17.24
  13. In my code above, that's what I done, but they weren't created!
  14. How, when the resource starts, do I create all these vehicles within this table? vehcreates = { [1] = createVehicle(589, 561.3701171875, -1289.9091796875, 17.248237609863) [2] = createVehicle(518, 556.1318359375, -1290.0322265625, 17.248237609863 ) [3] = createVehicle(402, 550.7373046875, -1289.525390625, 17.248237609863 ) [4] = createVehicle(603, 545.7001953125, -1289.4248046875, 17.248237609863) [5] = createVehicle(480, 540.79296875, -1289.3271484375, 17.2421875 ) [6] = createVehicle(415, 535.57421875, -1289.22265625, 17.2421875) [7] = createVehicle(56
  15. Thank you! A quick question, what does; for i, v in ipairs ( markers ) do mean?
  16. I have quite a number of markers, is there any easier way of doing local marker1, marker2 = createMarker ( ... ), createMarker ( ... ) local ele = createElement ( "markers" ) setElementParent ( marker1, ele ) setElementParent ( marker2, ele )
  17. Dummy element has to be a real element, or can be made up? EDIT: Nevermind, I understand now thanks!
  18. Dummy element has to be a real element, or can be made up?
  19. Lloyd Logan

    Markers

    When someone enters a marker, you would use onMarkerHit(themarkertheyentered) But if I have many markers, how can I use this so that if they enter any of these markers, one event is triggered (onMarkerHit)
  20. Thanks! I didn't know I needed the resourceRoot though!
×
×
  • Create New...