Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. You can trigger the client event that loads the mod for certain players only.
  2. Just take a look at the OP's code?
  3. JR10

    help me pls

    Check it again. call meta.xml: <export function='showWindow' type='client'/> Client-side: function showWindow() guiSetVisible(window, true) end And from the other resource, in a client-side script: exports.resource_name:showWindow()
  4. JR10

    Help!

    createColRectangle
  5. JR10

    help me pls

    You can use exports. call
  6. Then you should post it for future reference.
  7. I don't think it's possible to remove the /login command by cancelling onPlayerCommand.
  8. JR10

    objects

    removeWorldModel
  9. You could map the inside of the building object and make an open-able door. It will need precision and even that might still be unstable. If the door is part of the building object then you'll need to mod the object and remove the door.
  10. You could always disable access to the command with acl.
  11. You could do the timer and the calculations client-side and when ready send the coords server-side.
  12. JR10

    Help XML

    local color_node = xmlFindChild(node, 'color', 0) local skin_node = xmlFindChild(node, 'skin', 0)
  13. JR10

    Solved..

    Either you're not in the VIP group or you don't have the "lang" element data set to any of the two options.
  14. JR10

    Solved

    You're already doing that with guiSetText.
  15. The forum software itself is vastly outdated. Adding new plugins might not be the best idea. Plus, this idea has been suggested more than once before and it never got implemented.
  16. JR10

    Solved

    Because you're creating a gui-label each time the event is triggered, just set the text of the label, you don't have to create a new one each time.
  17. JR10

    Solved

    setTimer(function() for i,plr in pairs(getElementsByType"player")do local inAcl if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( plr ) ), aclGetGroup ( "vip" ) ) then inAcl = true else inAcl = false end triggerClientEvent( plr, "aaaaaa", plr, inAcl) end end,5000,0) thePlayer wasn't defined. I also localized inAcl.
  18. For the forum? Absolutely useless.
  19. JR10

    Solved..

    if tonumber (points) == 1 then PointsString = "TEST" elseif tonumber (points) >= 2 and tonumber(points) < 5 then PointsString = "TEST1" else PointsString = "TEST2" end outputChatBox("#FFFF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true)
  20. JR10

    Solved..

    This is not the correct syntax of the if conditional in Lua. if tonumber (points) == 1 then PointsString = "Point!" elseif tonumber (points) >= 2 then PointsString = "Points!" end outputChatBox("#FFFF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) This is different from your original code, but it's what you described.
  21. JR10

    Help

    You can already set/give the player a certain amount of money and then use getPlayerMoney to make sure the player can afford the price.
  22. The client-side setWeaponProperty deals with custom weapons, while the server-side one deals with normal weapons.
  23. JR10

    [HELP]Interiors

    You could use a colshape to detect players hitting it.
×
×
  • Create New...