Jump to content

monamour

Members
  • Posts

    21
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

675 profile views

monamour's Achievements

Civilian

Civilian (7/54)

3

Reputation

  1. hello everyone, i was wondring if i can hide this green triangle above the aimed to players
  2. well i dont know what resuroces you use but you can open the lua files (server side) press Ctrl+f and search for > onPlayerChat -> delete event handler ->done. it can be freeroam and it can be some other script , you have to search. this will slove it 100%
  3. OH bro i am so stupid that i didn't realized it!! now i understand , by your favor! thank you so much , i really appreicate that you spent time to teach and correct me , not only replaying with the correct code but with explaying and its so kindly!!
  4. but its exactly what i did like you see in the start of topic : script: staffcar = { [432]=true,[425]=true,[520]=true,[599]=true } function enterVehicle ( player, seat, jacked ) ------- exactly like you said if ( staffcar[getElementModel(source)] ) and not isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ("Admin") ) then cancelEvent() outputChatBox ( "only acl can enter this!", player ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) but what happening is even normal player can enter them and i have the error message in the console which is : WARNING: server.lua:4: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] ERROR: server.lua:4: attempt to concatenate a boolean value *i think the problem is somewhere in the red code
  5. btw its still not working new error : WARNING: server.lua:4: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] ERROR: server.lua:4: attempt to concatenate a boolean value and the error show every time (non admin) enter Vehichle (staffcar)
  6. yeah i understand the diffrence betwen server and client . freeroam has server and,client side, of course , so i need to edit the server side defently but how could i make them spawn them and able to enter them if i have staffcar script(the one you helpt me with) running in same time !!
  7. the probleam is in some other resource than freeroam!! so you have chat handler in another script , so you have to check your running resuorces one of them has chat handler (try to stop them and try ) when you find out which one has the chat handler edit it and delete the chat handler . try to check after each stopping if the problem sloved
  8. @IIYAMA Thank you bro , that is so kind of you to replay and how i could make players (non staff) pays if they wanted to spawn some of them (like 425) ? using freeroam gui
  9. one of them is from freeroam and the other one if from some another resource so you need to stop the running resources one by one and check after every stop if the problem sloved
  10. am trying to make script that allows only staffs(or acl i chose) to enter such vehicles and it would be great if somone teach me how to make players pays amount of money to spawn them this is what i made but it's not working SCRIPT ERROR: carpriv\server.lua:4: ')' expected near 'then' } script: staffcar = { [432]=true,[425]=true,[520]=true,[599]=true } function enterVehicle ( player, seat, jacked ) if ( staffcar[getElementModel(source)] ) and ( not isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ("Admin") ) then cancelEvent() outputChatBox ( "only acl can enter this!", player ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  11. already sloved , but thank you anyway
  12. meta.xml: <meta> <info name="changenick" author="Gamesnert" type="script" version="0.9.0" description="This resource change nick to account when player login"/> <script src="changenick_s.lua" type="server"/> </meta> Lua: addEventHandler ( "onPlayerLogin", root, function (_, theCurrentAccount ) setPlayerName ( source, getAccountName(theCurrentAccount) ) end) Edit : am sorry but it works now , ive forgot to upgrade the Resource Thank you very much to help me with this script , i really appreciate it i will upload it to community and give you credit for it if you dont mind
  13. it didn't work!! still nick not changed to account name on login
  14. hello everyone, am trying to make script which change playernick to his accountname after he login ( making player having same nick as his account name if he log in) iv'e tried this but it did not worked: addEventHandler ( 'onPlayerLogin', getRootElement ( ), function (, changnick ) localgetPlayerAccount(theCurrentAccount) then setPlayerName ( sPlayerElement, thecurrentaccount ) i know there are many mistakes in this script but am just new and i hope to learn please help me to fix it
×
×
  • Create New...