Jump to content

iMonkr

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

iMonkr's Achievements

Square

Square (6/54)

0

Reputation

  1. local db addEventHandler("onResourceStart", resourceRoot, function() db = dbConnect(sqlite, "serialdb.db") end) function getConnection() return db end
  2. iMonkr

    Register Once

    bRegisteredOnce = {} function registerPlayer(source, username, password ) local accountAdded = addAccount(username, password) if (accountAdded) then triggerClientEvent (client, "createNotification", client, "#33aaccCogratuation #ffffffyour have account now .", "success") bRegisteredOnce[source] = true elseif bRegisteredOnce[source] == true then outputChatBox("You already registered on this server!",source) end end addEvent("register", true) addEventHandler("register", root, registerPlayer)
  3. hey, i have added a login panel in my server, it has been loaded successfully but its not showing when i enter into my server. Whiee???
  4. what all function should i use to display a text textCreateDisplay textCreateTextItem textDisplayAddText (thats it?) i need to add a text in an object, like if i freeze the object, it should display freezed, if i unfreeze it should display unfreezed. i used textCreateDisplay textCreateTextItem textDisplayAddText these three functions, but its not displaying why?
  5. Oh okaiee bro thank you not working bro sorrie bro its sorriee bro i make a mistake, now its working thank you bro
  6. Okaie bro you are right, but wait bro lemme show my script. I used onMarketHit to run the function, but it's not working. Can you check what error?? Here is my script ??
  7. can you help me with it?
  8. okaie thank you bruh bro i have a doubt! can we set nearby object?? i mean we need to be near the object to run this function, for that what element i should use bro
  9. ah wait a minute bro client side.... testdoor = createObject(1499, 1580.03149, -1631.73987, 12.38281) bindKey("e", "down", function() local currentFreezeStatus = isElementFrozen ( testdoor ) if currentFreezeStatus then setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have opened the door!",255,255,255) else setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have closed the door!",255,255,255) end end) here is my script bro! it works perfectly.... but i have a doubt bro, if the object is been freezed by a player will it be applicable for other players?
  10. bro if i remove source in client side, then what should i add bro or what should i do in server side. can you explain bro, i am new to scripting
  11. testdoor = createObject(1499, 1580.03149, -1631.73987, 13.38281) bindKey(source, "e", "down", function() local currentFreezeStatus = isElementFrozen ( testdoor ) if currentFreezeStatus then setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have closed the door!",255,255,255) else setElementFrozen ( testdoor, currentFreezeStatus ) outputChatBox("You have opened the door!",255,255,255) end end) its showing an error bad argument @ 'bindkey' [expected player argument 1, but nil]
×
×
  • Create New...