Jump to content


  • Posts

  • Joined

  • Last visited


  • Gang

Recent Profile Visitors

520 profile views

rtx's Achievements


Rat (9/54)



  1. setRadioChannel may be triggering 'onClientPlayerRadioSwitch'! Actually from the looks of it, I would say it definitely triggers that event.
  2. Spoilers only work in certain vehicles.
  3. You can only pass 2^31-1 bit integer arguments in the math class. This means the maximum number you can represent is: 2147483647 You're getting a negative value because you're getting an integer overflow, meaning the value you're trying to represent is higher than the value I've just mentioned and therefore the bit signal is affected. The solution for your problem is simple (assuming you really need a number that high): local a = "" for k = 1, 12 do a = a .. tostring(math.random(0,9)) end
  4. Notice that the event's element is the root element, NOT the player who hit the marker. -- Client: triggerServerEvent("hajsy", localPlayer, kasa)
  5. rtx

    Text stuff

    local maxLen = 8 -- maximum length local a = "Your string here" if #a > maxLen then a = string.sub ( a, 0, maxLen ) .. " ..." end
  6. You could loop through a list of models when your resource starts and check if the model is lowLOD by doing something like: local lowLOD = {} local obj = createObject ( 69, 0, 0, 0 ) for k=A, B do setElementModel ( obj, A ) if getLowLODElement ( obj ) then lowLOD[A] = true end end destroyElement ( obj ) Not sure if this works - in any case, hope it helps.
  7. use the event: "onClientSoundStarted" to get and store the sound element when the map's song starts playing and then handle it as you'd like.
  8. Use these functions: createObject () moveObject ()
  9. rtx

    Objects view

    Have you tried freezing the player until he becomes the camera's target again? (with a little delay so the objects are streamed in again).
  10. You need to make the objects client side. After you verify that the player who has hit the colshape is indeed allowed to open the gate you need to trigger a client event. triggerClientEvent ( player, "yourOpenTheGateEvent", player ) A better way to do it would be to make it fully client sided. For that you could store the player's login info when he logs in/ out client side (by using triggerClientEvent upon onPlayerLogin/onPlayerLogout).
  11. You can: -- cancel the event: "onClientChatMessage" -- and make it output your censored message with outputChatBox () -- use string.gsub to find and replace the "bad words"
  12. Consider using shaders to replace an object's texture. Would give it a 3D look.
  13. These are really cool, good job.
  14. Make sure you're taking the cursor's relative position and width/height into attention.
  • Create New...