Search the Community
Showing results for tags 'character'.
-
A simple script of dressable characters and deformable faces. You can move every vertex of the head with a simple displacement shader. The script is in test state right now, I'll create a new editor later. Hope you like it.
- 17 replies
-
- 20
-
Sziasztok, letöltöttem 1 mta modot, mivel a haveromékkal leülünk gépezni akkor így szórakozni szoktunk, és minden lan végén resetelni szeretném a karaktereket, hogy minden jármű eltünjön meg mindenünk mivel, másnap úgy is más autókkal megyünk, és a resetcharacter nem működik, online szerverre nem terveztem, mivel ha terveznék akkor saját moddal, így csak lanra kell ------------------------------------------------------------------------------------------------------------------------RESETCHARACTER--------------------------------------------------------------------------------------------------------------------------------------------- function resetCharacter(thePlayer, commandName, ...) if exports.saf_global:isPlayerAdmin(thePlayer) then if not (...) then outputChatBox("#7cc576[SeeMTA]: #FFFFFF/" .. commandName .. " [Karakter pontos neve]", thePlayer, 255, 255, 255, true) else local character = table.concat({...}, "_") if getPlayerFromName(character) then kickPlayer(getPlayerFromName(character), "Karakter viszaállítás") end local result = dbPoll ( dbQuery( connection, "SELECT id, account FROM characters WHERE charactername='??' LIMIT 1", character), -1 ) local charid = tonumber(result[1]["id"]) local account = tonumber(result[1]["account"]) if charid then -- delete all in-game vehicles for key, value in pairs( getElementsByType( "vehicle" ) ) do if isElement( value ) then if getElementData( value, "owner" ) == charid then destroyElement( value ) end end end dbPoll ( dbQuery( connection, "DELETE FROM vehicles WHERE owner = '?'", charid), -1 ) -- un-rent all interiors local old = getElementData( thePlayer, "dbid" ) setElementData( thePlayer, "dbid", charid ) local result, sorszam = dbPoll ( dbQuery( connection, "SELECT id FROM interiors WHERE owner = '?' AND type != 2", charid), -1 ) if result and sorszam > 0 then for _, row in ipairs(result) do local id = tonumber(row["id"]) end end setElementData( thePlayer, "dbid", old ) -- get rid of all items, give him default items back dbPoll ( dbQuery( connection, "DELETE FROM itemek WHERE tipus = 1 AND tulaj = '?'", charid), -1 ) -- delete wiretransfers dbPoll ( dbQuery( connection, "DELETE FROM wiretransfers WHERE `from` = '?' OR `to` = '?'", charid, charid), -1 ) -- set spawn at unity, strip off money etc dbPoll ( dbQuery( connection, "UPDATE characters SET x=1742.1884765625, y=-1861.3564453125, z=13.577615737915, rotation=0, faction_id=-1, faction_rank=0, faction_leader=0, weapons='', ammo='', car_license=0, gun_license=0, hoursplayed=0, timeinserver=0, transport=1, lastarea='El Corona', money=250, bankmoney=500, interior_id=0, dimension_id=0, health=100, armor=0, radiochannel=100, fightstyle=0, pdjail=0, pdjail_time=0, restrainedobj=0, restrainedby=0, hunter=0, stevie=0, tyrese=0, rook=0, fish=0, truckingruns=0, truckingwage=0, blindfold=0, phoneoff=0 WHERE id = '?'", charid), -1 ) outputChatBox("Lenulláztad " .. character .. " vagyonát.", thePlayer, 0, 255, 0) if (getElementData(thePlayer, "hiddenadmin")==0) then local adminTitle = exports.saf_global:getPlayerAdminTitle(thePlayer) exports.saf_global:sendMessageToAdmins("" .. tostring(adminTitle) .. " " .. getPlayerName(thePlayer) .. " visszaállította " .. character .. " karaktert.") end else outputChatBox("Nem találom: " .. character, thePlayer, 255, 0, 0) end end end end addCommandHandler("resetcharacter", resetCharacter)
-
After I finished the first version of my character customization system i just realized its such a piece of crap, so i started writing a new version with a whole new concept. The first version worked with CJ skin and i just attached some custom head models to it. Conversely the new version is running with shaders and the skin is a custom dff. Here is a video of the head customization. The clothing is in progress yet, it takes a lot of time because i have to make custom cloth models. Hope you like it. Please don't ask for the source code, this script will never be released. Sorry.
-
Hello! I'm trying to figure out how to create the same system. What should I use? I think that it's obvious that it's changing the texture only, not the model. I have read about shader, but didn't quite understood. Here's the video what I want to get: https://www.youtube.com/watch?v=jPDYwPUhL6c
-
SERVER DISCONTINUED Version 1.0 Neptune Roleplay will take place in Los Santos. Each and every single faction was properly and realistically set up. Everyone has a chance to join a faction and roleplay whatever they wish! Rules have been completely changed and are now eleven times better. There will be weekly in-character organised events in the city and its surrounding counties that everyone will be able to participate in. So keep an eye out. N:RP won't be boring and repetitive. Staff, administrators and helpers know what they're doing. They were trained and have a handbook at their disposal. We don't use stolen maps unlike other servers. Los Santos was custom mapped by our team. A variety of new official interiors awaits you! The chat and user interface was given a whole new look! There are 3 new government jobs that you can try out. And a lot more that I'll write on this thread asap. Stay tuned to our Discord guild where we'll post announcements, screenshots, media and showcase our features as we approach the release! Server IP: 213.136.78.61 Stay connected thanks to Discord: https://discord.gg/nCmvu2So tisiV Visit our community forums at: http://forums.neptune-gaming.com/ Big thank you to the access team that helped fix all the bugs and been awesome so far!
-
Hello everyone! I am beginner in all of this. I am a hobby scripter, because I have interest in scripting. BUT I have problem. I want to make a skill system(like you shoot a leg you get 1points for that), and I found a free resource that varies your skill up to 999 in server side and I found another one that do this client side.(also I won't use it like my scripts in a server) OK I have problems with client AND server side too. I can't connect and update the variable. I created a table for the UZI skill (uzi_skill) to try it, but I can't get working. Original source: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11129 This is just the Uzi skill section. The skill is tied to the character-system. (db: character-system -> table: uzi_skill [tinyint(4)] ) function uzi ( attacker, attackerweapon, bodypart, loss ) local statz = getPedStat(attacker, 75) local healthh = getElementHealth(source) local setstat = statz + (100.0 - healthh) * 0.05 local cteam = getPlayerTeam(attacker) local pteam = getPlayerTeam(source) --exports['skill']:changeProtectedElementDataEx(source, "uzi_skill", tonumber(setstat)) <--- I tried with this. Complete FAIL(I know why) if getTeamName(cteam) == getTeamName(pteam) then return false elseif attacker and getElementType(attacker) == "player" and (attackerweapon == 28 or attackerweapon == 32) and (statz < 999) then setPedStat(attacker, 75, setstat) end if (statz > 980) then setPedStat(attacker, 75, 999) end end addEventHandler("onPlayerDamage", getRootElement(), uzi) I want a bit help, just one example how to do this with this. (Please don't ask in fragments. Also I don't know where to put that script fragment). I'd be happy if someone could help me
- 6 replies
-
- skill-system
- character
-
(and 4 more)
Tagged with: